Documentation ¶
Index ¶
- func RegisterCalendarServer(s *grpc.Server, srv CalendarServer)
- type CalendarClient
- type CalendarServer
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetDescription() string
- func (m *Event) GetDuration() *duration.Duration
- func (m *Event) GetId() uint64
- func (m *Event) GetNoticePeriod() *duration.Duration
- func (m *Event) GetNoticeTime() *timestamp.Timestamp
- func (m *Event) GetTime() *timestamp.Timestamp
- func (m *Event) GetTitle() string
- func (m *Event) GetUserId() uint64
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventID
- func (*EventID) Descriptor() ([]byte, []int)
- func (m *EventID) GetID() uint64
- func (*EventID) ProtoMessage()
- func (m *EventID) Reset()
- func (m *EventID) String() string
- func (m *EventID) XXX_DiscardUnknown()
- func (m *EventID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventID) XXX_Merge(src proto.Message)
- func (m *EventID) XXX_Size() int
- func (m *EventID) XXX_Unmarshal(b []byte) error
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetEventId() uint64
- func (m *Notification) GetTime() *timestamp.Timestamp
- func (m *Notification) GetTitle() string
- func (m *Notification) GetUserId() uint64
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) String() string
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type ResponseEvent
- func (*ResponseEvent) Descriptor() ([]byte, []int)
- func (m *ResponseEvent) GetItem() *Event
- func (m *ResponseEvent) GetStatus() *Status
- func (*ResponseEvent) ProtoMessage()
- func (m *ResponseEvent) Reset()
- func (m *ResponseEvent) String() string
- func (m *ResponseEvent) XXX_DiscardUnknown()
- func (m *ResponseEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseEvent) XXX_Merge(src proto.Message)
- func (m *ResponseEvent) XXX_Size() int
- func (m *ResponseEvent) XXX_Unmarshal(b []byte) error
- type ResponseEvents
- func (*ResponseEvents) Descriptor() ([]byte, []int)
- func (m *ResponseEvents) GetList() []*Event
- func (m *ResponseEvents) GetStatus() *Status
- func (*ResponseEvents) ProtoMessage()
- func (m *ResponseEvents) Reset()
- func (m *ResponseEvents) String() string
- func (m *ResponseEvents) XXX_DiscardUnknown()
- func (m *ResponseEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResponseEvents) XXX_Merge(src proto.Message)
- func (m *ResponseEvents) XXX_Size() int
- func (m *ResponseEvents) XXX_Unmarshal(b []byte) error
- type Status
- func (*Status) Descriptor() ([]byte, []int)
- func (m *Status) GetError() string
- func (m *Status) GetErrorCode() uint32
- func (m *Status) GetOK() bool
- func (*Status) ProtoMessage()
- func (m *Status) Reset()
- func (m *Status) String() string
- func (m *Status) XXX_DiscardUnknown()
- func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Status) XXX_Merge(src proto.Message)
- func (m *Status) XXX_Size() int
- func (m *Status) XXX_Unmarshal(b []byte) error
- type UnimplementedCalendarServer
- func (*UnimplementedCalendarServer) EventCreate(ctx context.Context, req *Event) (*ResponseEvent, error)
- func (*UnimplementedCalendarServer) EventDelete(ctx context.Context, req *EventID) (*Status, error)
- func (*UnimplementedCalendarServer) EventListOnDay(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
- func (*UnimplementedCalendarServer) EventListOnMonth(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
- func (*UnimplementedCalendarServer) EventListOnWeek(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
- func (*UnimplementedCalendarServer) EventUpdate(ctx context.Context, req *Event) (*ResponseEvent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCalendarServer ¶
func RegisterCalendarServer(s *grpc.Server, srv CalendarServer)
Types ¶
type CalendarClient ¶
type CalendarClient interface { EventCreate(ctx context.Context, in *Event, opts ...grpc.CallOption) (*ResponseEvent, error) EventUpdate(ctx context.Context, in *Event, opts ...grpc.CallOption) (*ResponseEvent, error) EventDelete(ctx context.Context, in *EventID, opts ...grpc.CallOption) (*Status, error) EventListOnDay(ctx context.Context, in *timestamp.Timestamp, opts ...grpc.CallOption) (*ResponseEvents, error) EventListOnWeek(ctx context.Context, in *timestamp.Timestamp, opts ...grpc.CallOption) (*ResponseEvents, error) EventListOnMonth(ctx context.Context, in *timestamp.Timestamp, opts ...grpc.CallOption) (*ResponseEvents, error) }
CalendarClient is the client API for Calendar service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCalendarClient ¶
func NewCalendarClient(cc grpc.ClientConnInterface) CalendarClient
type CalendarServer ¶
type CalendarServer interface { EventCreate(context.Context, *Event) (*ResponseEvent, error) EventUpdate(context.Context, *Event) (*ResponseEvent, error) EventDelete(context.Context, *EventID) (*Status, error) EventListOnDay(context.Context, *timestamp.Timestamp) (*ResponseEvents, error) EventListOnWeek(context.Context, *timestamp.Timestamp) (*ResponseEvents, error) EventListOnMonth(context.Context, *timestamp.Timestamp) (*ResponseEvents, error) }
CalendarServer is the server API for Calendar service.
type Event ¶
type Event struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"` Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` NoticePeriod *duration.Duration `protobuf:"bytes,7,opt,name=notice_period,json=noticePeriod,proto3" json:"notice_period,omitempty"` NoticeTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=notice_time,json=noticeTime,proto3" json:"notice_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetDescription ¶
func (*Event) GetDuration ¶
func (*Event) GetNoticePeriod ¶
func (*Event) GetNoticeTime ¶
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_Unmarshal ¶
type EventID ¶
type EventID struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EventID) Descriptor ¶
func (*EventID) ProtoMessage ¶
func (*EventID) ProtoMessage()
func (*EventID) XXX_DiscardUnknown ¶
func (m *EventID) XXX_DiscardUnknown()
func (*EventID) XXX_Marshal ¶
func (*EventID) XXX_Unmarshal ¶
type Notification ¶
type Notification struct { EventId uint64 `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` UserId uint64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Time *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetEventId ¶
func (m *Notification) GetEventId() uint64
func (*Notification) GetTime ¶
func (m *Notification) GetTime() *timestamp.Timestamp
func (*Notification) GetTitle ¶
func (m *Notification) GetTitle() string
func (*Notification) GetUserId ¶
func (m *Notification) GetUserId() uint64
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type ResponseEvent ¶
type ResponseEvent struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Item *Event `protobuf:"bytes,2,opt,name=item,proto3" json:"item,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResponseEvent) Descriptor ¶
func (*ResponseEvent) Descriptor() ([]byte, []int)
func (*ResponseEvent) GetItem ¶
func (m *ResponseEvent) GetItem() *Event
func (*ResponseEvent) GetStatus ¶
func (m *ResponseEvent) GetStatus() *Status
func (*ResponseEvent) ProtoMessage ¶
func (*ResponseEvent) ProtoMessage()
func (*ResponseEvent) Reset ¶
func (m *ResponseEvent) Reset()
func (*ResponseEvent) String ¶
func (m *ResponseEvent) String() string
func (*ResponseEvent) XXX_DiscardUnknown ¶
func (m *ResponseEvent) XXX_DiscardUnknown()
func (*ResponseEvent) XXX_Marshal ¶
func (m *ResponseEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseEvent) XXX_Merge ¶
func (m *ResponseEvent) XXX_Merge(src proto.Message)
func (*ResponseEvent) XXX_Size ¶
func (m *ResponseEvent) XXX_Size() int
func (*ResponseEvent) XXX_Unmarshal ¶
func (m *ResponseEvent) XXX_Unmarshal(b []byte) error
type ResponseEvents ¶
type ResponseEvents struct { Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` List []*Event `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ResponseEvents) Descriptor ¶
func (*ResponseEvents) Descriptor() ([]byte, []int)
func (*ResponseEvents) GetList ¶
func (m *ResponseEvents) GetList() []*Event
func (*ResponseEvents) GetStatus ¶
func (m *ResponseEvents) GetStatus() *Status
func (*ResponseEvents) ProtoMessage ¶
func (*ResponseEvents) ProtoMessage()
func (*ResponseEvents) Reset ¶
func (m *ResponseEvents) Reset()
func (*ResponseEvents) String ¶
func (m *ResponseEvents) String() string
func (*ResponseEvents) XXX_DiscardUnknown ¶
func (m *ResponseEvents) XXX_DiscardUnknown()
func (*ResponseEvents) XXX_Marshal ¶
func (m *ResponseEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResponseEvents) XXX_Merge ¶
func (m *ResponseEvents) XXX_Merge(src proto.Message)
func (*ResponseEvents) XXX_Size ¶
func (m *ResponseEvents) XXX_Size() int
func (*ResponseEvents) XXX_Unmarshal ¶
func (m *ResponseEvents) XXX_Unmarshal(b []byte) error
type Status ¶
type Status struct { OK bool `protobuf:"varint,1,opt,name=OK,proto3" json:"OK,omitempty"` ErrorCode uint32 `protobuf:"varint,2,opt,name=ErrorCode,proto3" json:"ErrorCode,omitempty"` Error string `protobuf:"bytes,3,opt,name=Error,proto3" json:"Error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Status) Descriptor ¶
func (*Status) GetErrorCode ¶
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) XXX_DiscardUnknown ¶
func (m *Status) XXX_DiscardUnknown()
func (*Status) XXX_Marshal ¶
func (*Status) XXX_Unmarshal ¶
type UnimplementedCalendarServer ¶
type UnimplementedCalendarServer struct { }
UnimplementedCalendarServer can be embedded to have forward compatible implementations.
func (*UnimplementedCalendarServer) EventCreate ¶
func (*UnimplementedCalendarServer) EventCreate(ctx context.Context, req *Event) (*ResponseEvent, error)
func (*UnimplementedCalendarServer) EventDelete ¶
func (*UnimplementedCalendarServer) EventListOnDay ¶
func (*UnimplementedCalendarServer) EventListOnDay(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
func (*UnimplementedCalendarServer) EventListOnMonth ¶
func (*UnimplementedCalendarServer) EventListOnMonth(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
func (*UnimplementedCalendarServer) EventListOnWeek ¶
func (*UnimplementedCalendarServer) EventListOnWeek(ctx context.Context, req *timestamp.Timestamp) (*ResponseEvents, error)
func (*UnimplementedCalendarServer) EventUpdate ¶
func (*UnimplementedCalendarServer) EventUpdate(ctx context.Context, req *Event) (*ResponseEvent, error)
Click to show internal directories.
Click to hide internal directories.