if you deal with snow, the pivot is a good idea - ask me how I know!
There are many ways to connect a plate or angle to the strut - bolting with unistrut-brackets, welding, bolt plates to the sides of the strut etc.
The easiest way for you may be to pick a small box section say 4" x 2" for example, the box may only need to be 5-6 feet long attached the back of the strut and centred - so the 10-foot strut has 2 feet of projection longer than the box section at each end.
You can drill through the strut into the box section, and tap for bolts. Some guys like to use self-drilling-self-taping screws but I feel these are a bit small for this application.
Then to make your pivots, put a 4" x 4" angle on each side of the box section - lift the box enough relative to the angle that it can pivot without binding - drill through the angle - the box section - the other angle - install decent sized bolts - 1/2" diameter bolts work well for this in my experience.