WithVisibility returns an option that sets the visibility of the event.
(rights ...ttnpb.Right)
| 61 | |
| 62 | // WithVisibility returns an option that sets the visibility of the event. |
| 63 | func WithVisibility(rights ...ttnpb.Right) Option { |
| 64 | return optionFunc(func(e *event) { |
| 65 | e.innerEvent.Visibility = ttnpb.RightsFrom(rights...) |
| 66 | }) |
| 67 | } |
| 68 | |
| 69 | // WithAuthFromContext returns an option that extracts auth information from the context when the event is created. |
| 70 | func WithAuthFromContext() Option { |