calendarpb

package
v0.0.0-...-92f7cd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Event) GetDescription

func (m *Event) GetDescription() string

func (*Event) GetDuration

func (m *Event) GetDuration() *duration.Duration

func (*Event) GetId

func (m *Event) GetId() uint64

func (*Event) GetNoticePeriod

func (m *Event) GetNoticePeriod() *duration.Duration

func (*Event) GetNoticeTime

func (m *Event) GetNoticeTime() *timestamp.Timestamp

func (*Event) GetTime

func (m *Event) GetTime() *timestamp.Timestamp

func (*Event) GetTitle

func (m *Event) GetTitle() string

func (*Event) GetUserId

func (m *Event) GetUserId() uint64

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) XXX_DiscardUnknown

func (m *Event) XXX_DiscardUnknown()

func (*Event) XXX_Marshal

func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*EventID) GetID

func (m *EventID) GetID() uint64

func (*EventID) ProtoMessage

func (*EventID) ProtoMessage()

func (*EventID) Reset

func (m *EventID) Reset()

func (*EventID) String

func (m *EventID) String() string

func (*EventID) XXX_DiscardUnknown

func (m *EventID) XXX_DiscardUnknown()

func (*EventID) XXX_Marshal

func (m *EventID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventID) XXX_Merge

func (m *EventID) XXX_Merge(src proto.Message)

func (*EventID) XXX_Size

func (m *EventID) XXX_Size() int

func (*EventID) XXX_Unmarshal

func (m *EventID) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Status) GetError

func (m *Status) GetError() string

func (*Status) GetErrorCode

func (m *Status) GetErrorCode() uint32

func (*Status) GetOK

func (m *Status) GetOK() bool

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) Reset

func (m *Status) Reset()

func (*Status) String

func (m *Status) String() string

func (*Status) XXX_DiscardUnknown

func (m *Status) XXX_DiscardUnknown()

func (*Status) XXX_Marshal

func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Status) XXX_Merge

func (m *Status) XXX_Merge(src proto.Message)

func (*Status) XXX_Size

func (m *Status) XXX_Size() int

func (*Status) XXX_Unmarshal

func (m *Status) XXX_Unmarshal(b []byte) error

type UnimplementedCalendarServer

type UnimplementedCalendarServer struct {
}

UnimplementedCalendarServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalendarServer) EventCreate

func (*UnimplementedCalendarServer) EventDelete

func (*UnimplementedCalendarServer) EventDelete(ctx context.Context, req *EventID) (*Status, error)

func (*UnimplementedCalendarServer) EventListOnDay

func (*UnimplementedCalendarServer) EventListOnMonth

func (*UnimplementedCalendarServer) EventListOnWeek

func (*UnimplementedCalendarServer) EventUpdate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL