Documentation ¶
Index ¶
- Variables
- func RegisterReminderReceiverServer(s grpc.ServiceRegistrar, srv ReminderReceiverServer)
- func RegisterRemindersServer(s grpc.ServiceRegistrar, srv RemindersServer)
- type DeleteRequest
- type DeleteResponse
- type Empty
- type ReceiveRequest
- type ReceiveResponse
- type Reminder
- func (*Reminder) Descriptor() ([]byte, []int)deprecated
- func (x *Reminder) GetCurrentState() Reminder_ReminderState
- func (x *Reminder) GetDayOfWeek() string
- func (x *Reminder) GetGithubComponent() string
- func (x *Reminder) GetGithubId() string
- func (x *Reminder) GetNextRunTime() int64
- func (x *Reminder) GetRepeatPeriod() Reminder_ReminderPeriod
- func (x *Reminder) GetRepeatPeriodInSeconds() int64
- func (x *Reminder) GetServer() string
- func (x *Reminder) GetSilences() []string
- func (x *Reminder) GetText() string
- func (x *Reminder) GetUid() int64
- func (*Reminder) ProtoMessage()
- func (x *Reminder) ProtoReflect() protoreflect.Message
- func (x *Reminder) Reset()
- func (x *Reminder) String() string
- type ReminderConfig
- type ReminderList
- type ReminderReceiverClient
- type ReminderReceiverServer
- type Reminder_ReminderPeriod
- func (Reminder_ReminderPeriod) Descriptor() protoreflect.EnumDescriptor
- func (x Reminder_ReminderPeriod) Enum() *Reminder_ReminderPeriod
- func (Reminder_ReminderPeriod) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reminder_ReminderPeriod) Number() protoreflect.EnumNumber
- func (x Reminder_ReminderPeriod) String() string
- func (Reminder_ReminderPeriod) Type() protoreflect.EnumType
- type Reminder_ReminderState
- func (Reminder_ReminderState) Descriptor() protoreflect.EnumDescriptor
- func (x Reminder_ReminderState) Enum() *Reminder_ReminderState
- func (Reminder_ReminderState) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reminder_ReminderState) Number() protoreflect.EnumNumber
- func (x Reminder_ReminderState) String() string
- func (Reminder_ReminderState) Type() protoreflect.EnumType
- type RemindersClient
- type RemindersServer
- type UnimplementedReminderReceiverServer
- type UnimplementedRemindersServer
- type UnsafeReminderReceiverServer
- type UnsafeRemindersServer
Constants ¶
This section is empty.
Variables ¶
var ( Reminder_ReminderState_name = map[int32]string{ 0: "REPEATING", 1: "ASSIGNED", 2: "COMPLETE", 3: "UNASSIGNED", } Reminder_ReminderState_value = map[string]int32{ "REPEATING": 0, "ASSIGNED": 1, "COMPLETE": 2, "UNASSIGNED": 3, } )
Enum value maps for Reminder_ReminderState.
var ( Reminder_ReminderPeriod_name = map[int32]string{ 0: "WEEKLY", 1: "MONTHLY", 2: "YEARLY", 3: "HALF_YEARLY", 4: "DAILY", 5: "BIWEEKLY", 6: "ONE_OFF", } Reminder_ReminderPeriod_value = map[string]int32{ "WEEKLY": 0, "MONTHLY": 1, "YEARLY": 2, "HALF_YEARLY": 3, "DAILY": 4, "BIWEEKLY": 5, "ONE_OFF": 6, } )
Enum value maps for Reminder_ReminderPeriod.
var File_reminders_proto protoreflect.FileDescriptor
Functions ¶
func RegisterReminderReceiverServer ¶
func RegisterReminderReceiverServer(s grpc.ServiceRegistrar, srv ReminderReceiverServer)
func RegisterRemindersServer ¶
func RegisterRemindersServer(s grpc.ServiceRegistrar, srv RemindersServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetUid ¶
func (x *DeleteRequest) GetUid() int64
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ReceiveRequest ¶
type ReceiveRequest struct {
// contains filtered or unexported fields
}
func (*ReceiveRequest) Descriptor
deprecated
func (*ReceiveRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveRequest.ProtoReflect.Descriptor instead.
func (*ReceiveRequest) ProtoMessage ¶
func (*ReceiveRequest) ProtoMessage()
func (*ReceiveRequest) ProtoReflect ¶
func (x *ReceiveRequest) ProtoReflect() protoreflect.Message
func (*ReceiveRequest) Reset ¶
func (x *ReceiveRequest) Reset()
func (*ReceiveRequest) String ¶
func (x *ReceiveRequest) String() string
type ReceiveResponse ¶
type ReceiveResponse struct {
// contains filtered or unexported fields
}
func (*ReceiveResponse) Descriptor
deprecated
func (*ReceiveResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReceiveResponse.ProtoReflect.Descriptor instead.
func (*ReceiveResponse) ProtoMessage ¶
func (*ReceiveResponse) ProtoMessage()
func (*ReceiveResponse) ProtoReflect ¶
func (x *ReceiveResponse) ProtoReflect() protoreflect.Message
func (*ReceiveResponse) Reset ¶
func (x *ReceiveResponse) Reset()
func (*ReceiveResponse) String ¶
func (x *ReceiveResponse) String() string
type Reminder ¶
type Reminder struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Server string `protobuf:"bytes,11,opt,name=server,proto3" json:"server,omitempty"` // Text day of the week DayOfWeek string `protobuf:"bytes,2,opt,name=day_of_week,json=dayOfWeek,proto3" json:"day_of_week,omitempty"` // The time this should next be run NextRunTime int64 `protobuf:"varint,3,opt,name=next_run_time,json=nextRunTime,proto3" json:"next_run_time,omitempty"` CurrentState Reminder_ReminderState `` /* 136-byte string literal not displayed */ // Assigned state for a github task GithubId string `protobuf:"bytes,5,opt,name=github_id,json=githubId,proto3" json:"github_id,omitempty"` // The component this should filed against in la github GithubComponent string `protobuf:"bytes,6,opt,name=github_component,json=githubComponent,proto3" json:"github_component,omitempty"` RepeatPeriod Reminder_ReminderPeriod `protobuf:"varint,7,opt,name=repeatPeriod,proto3,enum=reminders.Reminder_ReminderPeriod" json:"repeatPeriod,omitempty"` Uid int64 `protobuf:"varint,8,opt,name=uid,proto3" json:"uid,omitempty"` // For something more freeform RepeatPeriodInSeconds int64 `` /* 129-byte string literal not displayed */ // To enable alert silencing Silences []string `protobuf:"bytes,10,rep,name=silences,proto3" json:"silences,omitempty"` // contains filtered or unexported fields }
func (*Reminder) Descriptor
deprecated
func (*Reminder) GetCurrentState ¶
func (x *Reminder) GetCurrentState() Reminder_ReminderState
func (*Reminder) GetDayOfWeek ¶
func (*Reminder) GetGithubComponent ¶
func (*Reminder) GetGithubId ¶
func (*Reminder) GetNextRunTime ¶
func (*Reminder) GetRepeatPeriod ¶
func (x *Reminder) GetRepeatPeriod() Reminder_ReminderPeriod
func (*Reminder) GetRepeatPeriodInSeconds ¶
func (*Reminder) GetSilences ¶
func (*Reminder) ProtoMessage ¶
func (*Reminder) ProtoMessage()
func (*Reminder) ProtoReflect ¶
func (x *Reminder) ProtoReflect() protoreflect.Message
type ReminderConfig ¶
type ReminderConfig struct { List *ReminderList `protobuf:"bytes,1,opt,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ReminderConfig) Descriptor
deprecated
func (*ReminderConfig) Descriptor() ([]byte, []int)
Deprecated: Use ReminderConfig.ProtoReflect.Descriptor instead.
func (*ReminderConfig) GetList ¶
func (x *ReminderConfig) GetList() *ReminderList
func (*ReminderConfig) ProtoMessage ¶
func (*ReminderConfig) ProtoMessage()
func (*ReminderConfig) ProtoReflect ¶
func (x *ReminderConfig) ProtoReflect() protoreflect.Message
func (*ReminderConfig) Reset ¶
func (x *ReminderConfig) Reset()
func (*ReminderConfig) String ¶
func (x *ReminderConfig) String() string
type ReminderList ¶
type ReminderList struct { Reminders []*Reminder `protobuf:"bytes,1,rep,name=reminders,proto3" json:"reminders,omitempty"` // contains filtered or unexported fields }
func (*ReminderList) Descriptor
deprecated
func (*ReminderList) Descriptor() ([]byte, []int)
Deprecated: Use ReminderList.ProtoReflect.Descriptor instead.
func (*ReminderList) GetReminders ¶
func (x *ReminderList) GetReminders() []*Reminder
func (*ReminderList) ProtoMessage ¶
func (*ReminderList) ProtoMessage()
func (*ReminderList) ProtoReflect ¶
func (x *ReminderList) ProtoReflect() protoreflect.Message
func (*ReminderList) Reset ¶
func (x *ReminderList) Reset()
func (*ReminderList) String ¶
func (x *ReminderList) String() string
type ReminderReceiverClient ¶
type ReminderReceiverClient interface {
Receive(ctx context.Context, in *ReceiveRequest, opts ...grpc.CallOption) (*ReceiveResponse, error)
}
ReminderReceiverClient is the client API for ReminderReceiver service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewReminderReceiverClient ¶
func NewReminderReceiverClient(cc grpc.ClientConnInterface) ReminderReceiverClient
type ReminderReceiverServer ¶
type ReminderReceiverServer interface {
Receive(context.Context, *ReceiveRequest) (*ReceiveResponse, error)
}
ReminderReceiverServer is the server API for ReminderReceiver service. All implementations should embed UnimplementedReminderReceiverServer for forward compatibility
type Reminder_ReminderPeriod ¶
type Reminder_ReminderPeriod int32
const ( Reminder_WEEKLY Reminder_ReminderPeriod = 0 Reminder_MONTHLY Reminder_ReminderPeriod = 1 Reminder_YEARLY Reminder_ReminderPeriod = 2 Reminder_HALF_YEARLY Reminder_ReminderPeriod = 3 Reminder_DAILY Reminder_ReminderPeriod = 4 Reminder_BIWEEKLY Reminder_ReminderPeriod = 5 Reminder_ONE_OFF Reminder_ReminderPeriod = 6 )
func (Reminder_ReminderPeriod) Descriptor ¶
func (Reminder_ReminderPeriod) Descriptor() protoreflect.EnumDescriptor
func (Reminder_ReminderPeriod) Enum ¶
func (x Reminder_ReminderPeriod) Enum() *Reminder_ReminderPeriod
func (Reminder_ReminderPeriod) EnumDescriptor
deprecated
func (Reminder_ReminderPeriod) EnumDescriptor() ([]byte, []int)
Deprecated: Use Reminder_ReminderPeriod.Descriptor instead.
func (Reminder_ReminderPeriod) Number ¶
func (x Reminder_ReminderPeriod) Number() protoreflect.EnumNumber
func (Reminder_ReminderPeriod) String ¶
func (x Reminder_ReminderPeriod) String() string
func (Reminder_ReminderPeriod) Type ¶
func (Reminder_ReminderPeriod) Type() protoreflect.EnumType
type Reminder_ReminderState ¶
type Reminder_ReminderState int32
The state the task is in
const ( Reminder_REPEATING Reminder_ReminderState = 0 Reminder_ASSIGNED Reminder_ReminderState = 1 Reminder_COMPLETE Reminder_ReminderState = 2 Reminder_UNASSIGNED Reminder_ReminderState = 3 )
func (Reminder_ReminderState) Descriptor ¶
func (Reminder_ReminderState) Descriptor() protoreflect.EnumDescriptor
func (Reminder_ReminderState) Enum ¶
func (x Reminder_ReminderState) Enum() *Reminder_ReminderState
func (Reminder_ReminderState) EnumDescriptor
deprecated
func (Reminder_ReminderState) EnumDescriptor() ([]byte, []int)
Deprecated: Use Reminder_ReminderState.Descriptor instead.
func (Reminder_ReminderState) Number ¶
func (x Reminder_ReminderState) Number() protoreflect.EnumNumber
func (Reminder_ReminderState) String ¶
func (x Reminder_ReminderState) String() string
func (Reminder_ReminderState) Type ¶
func (Reminder_ReminderState) Type() protoreflect.EnumType
type RemindersClient ¶
type RemindersClient interface { AddReminder(ctx context.Context, in *Reminder, opts ...grpc.CallOption) (*Empty, error) ListReminders(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ReminderConfig, error) DeleteTask(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
RemindersClient is the client API for Reminders service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRemindersClient ¶
func NewRemindersClient(cc grpc.ClientConnInterface) RemindersClient
type RemindersServer ¶
type RemindersServer interface { AddReminder(context.Context, *Reminder) (*Empty, error) ListReminders(context.Context, *Empty) (*ReminderConfig, error) DeleteTask(context.Context, *DeleteRequest) (*DeleteResponse, error) }
RemindersServer is the server API for Reminders service. All implementations should embed UnimplementedRemindersServer for forward compatibility
type UnimplementedReminderReceiverServer ¶
type UnimplementedReminderReceiverServer struct { }
UnimplementedReminderReceiverServer should be embedded to have forward compatible implementations.
func (UnimplementedReminderReceiverServer) Receive ¶
func (UnimplementedReminderReceiverServer) Receive(context.Context, *ReceiveRequest) (*ReceiveResponse, error)
type UnimplementedRemindersServer ¶
type UnimplementedRemindersServer struct { }
UnimplementedRemindersServer should be embedded to have forward compatible implementations.
func (UnimplementedRemindersServer) AddReminder ¶
func (UnimplementedRemindersServer) DeleteTask ¶
func (UnimplementedRemindersServer) DeleteTask(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedRemindersServer) ListReminders ¶
func (UnimplementedRemindersServer) ListReminders(context.Context, *Empty) (*ReminderConfig, error)
type UnsafeReminderReceiverServer ¶
type UnsafeReminderReceiverServer interface {
// contains filtered or unexported methods
}
UnsafeReminderReceiverServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReminderReceiverServer will result in compilation errors.
type UnsafeRemindersServer ¶
type UnsafeRemindersServer interface {
// contains filtered or unexported methods
}
UnsafeRemindersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RemindersServer will result in compilation errors.