Documentation
¶
Index ¶
- func NewCalendarEntryFromGocalEvent(calName string, e gocal.Event) *pb.CalendarEntry
- type Calendar
- type ICalClient
- func (e *ICalClient) FetchEvents(ctx context.Context)
- func (e *ICalClient) GetCurrentEvent(ctx context.Context, calendar string) *pb.CalendarEntry
- func (e *ICalClient) GetCustomStatus(ctx context.Context, req *pb.GetCustomStatusRequest) *pb.CustomStatus
- func (e *ICalClient) GetEvents(ctx context.Context) *pb.CalendarResponse
- func (e *ICalClient) SetCustomStatus(ctx context.Context, req *pb.SetCustomStatusRequest)
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCalendarEntryFromGocalEvent ¶
func NewCalendarEntryFromGocalEvent(calName string, e gocal.Event) *pb.CalendarEntry
Types ¶
type ICalClient ¶
type ICalClient struct {
CustomStatus map[string]*pb.CustomStatus // custom status is a map from calendar-name to status
// contains filtered or unexported fields
}
func NewICalClient ¶
func NewICalClient(zapLog *otelzap.Logger) *ICalClient
func (*ICalClient) FetchEvents ¶
func (e *ICalClient) FetchEvents(ctx context.Context)
func (*ICalClient) GetCurrentEvent ¶
func (e *ICalClient) GetCurrentEvent(ctx context.Context, calendar string) *pb.CalendarEntry
func (*ICalClient) GetCustomStatus ¶
func (e *ICalClient) GetCustomStatus(ctx context.Context, req *pb.GetCustomStatusRequest) *pb.CustomStatus
func (*ICalClient) GetEvents ¶
func (e *ICalClient) GetEvents(ctx context.Context) *pb.CalendarResponse
func (*ICalClient) SetCustomStatus ¶
func (e *ICalClient) SetCustomStatus(ctx context.Context, req *pb.SetCustomStatusRequest)
type Rule ¶
type Rule struct {
CalendarName string `mapstructure:"calendar"`
Name string `mapstructure:"name"`
Key string `mapstructure:"key"`
Contains []string `mapstructure:"contains"`
Skip bool `mapstructure:"skip"`
Message string `mapstructure:"message"`
Important bool `mapstructure:"important"`
}
Click to show internal directories.
Click to hide internal directories.