|
|
|
@ -10,7 +10,6 @@ import (
|
|
|
|
|
duration "github.com/golang/protobuf/ptypes/duration"
|
|
|
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
|
|
|
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
|
|
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
@ -143,85 +142,125 @@ func (m *Event) GetNotifyTime() *duration.Duration {
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EventList struct {
|
|
|
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
type CreateReq struct {
|
|
|
|
|
Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
|
|
|
|
|
Date *timestamp.Timestamp `protobuf:"bytes,3,opt,name=Date,proto3" json:"Date,omitempty"`
|
|
|
|
|
Latency *duration.Duration `protobuf:"bytes,4,opt,name=Latency,proto3" json:"Latency,omitempty"`
|
|
|
|
|
Note string `protobuf:"bytes,5,opt,name=Note,proto3" json:"Note,omitempty"`
|
|
|
|
|
UserID int64 `protobuf:"varint,6,opt,name=UserID,proto3" json:"UserID,omitempty"`
|
|
|
|
|
NotifyTime *duration.Duration `protobuf:"bytes,7,opt,name=NotifyTime,proto3" json:"NotifyTime,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventList) Reset() { *m = EventList{} }
|
|
|
|
|
func (m *EventList) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*EventList) ProtoMessage() {}
|
|
|
|
|
func (*EventList) Descriptor() ([]byte, []int) {
|
|
|
|
|
func (m *CreateReq) Reset() { *m = CreateReq{} }
|
|
|
|
|
func (m *CreateReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateReq) ProtoMessage() {}
|
|
|
|
|
func (*CreateReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{1}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventList) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_EventList.Unmarshal(m, b)
|
|
|
|
|
func (m *CreateReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_CreateReq.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_EventList.Marshal(b, m, deterministic)
|
|
|
|
|
func (m *CreateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_CreateReq.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventList) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_EventList.Merge(m, src)
|
|
|
|
|
func (m *CreateReq) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_CreateReq.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventList) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_EventList.Size(m)
|
|
|
|
|
func (m *CreateReq) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_CreateReq.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventList) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_EventList.DiscardUnknown(m)
|
|
|
|
|
func (m *CreateReq) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_CreateReq.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_EventList proto.InternalMessageInfo
|
|
|
|
|
var xxx_messageInfo_CreateReq proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *EventList) GetEvents() []*Event {
|
|
|
|
|
func (m *CreateReq) GetTitle() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Events
|
|
|
|
|
return m.Title
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateReq) GetDate() *timestamp.Timestamp {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Date
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EventID struct {
|
|
|
|
|
func (m *CreateReq) GetLatency() *duration.Duration {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Latency
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateReq) GetNote() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Note
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateReq) GetUserID() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.UserID
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *CreateReq) GetNotifyTime() *duration.Duration {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.NotifyTime
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CreateRsp struct {
|
|
|
|
|
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventID) Reset() { *m = EventID{} }
|
|
|
|
|
func (m *EventID) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*EventID) ProtoMessage() {}
|
|
|
|
|
func (*EventID) Descriptor() ([]byte, []int) {
|
|
|
|
|
func (m *CreateRsp) Reset() { *m = CreateRsp{} }
|
|
|
|
|
func (m *CreateRsp) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*CreateRsp) ProtoMessage() {}
|
|
|
|
|
func (*CreateRsp) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{2}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventID) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_EventID.Unmarshal(m, b)
|
|
|
|
|
func (m *CreateRsp) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_CreateRsp.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_EventID.Marshal(b, m, deterministic)
|
|
|
|
|
func (m *CreateRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_CreateRsp.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventID) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_EventID.Merge(m, src)
|
|
|
|
|
func (m *CreateRsp) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_CreateRsp.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventID) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_EventID.Size(m)
|
|
|
|
|
func (m *CreateRsp) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_CreateRsp.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventID) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_EventID.DiscardUnknown(m)
|
|
|
|
|
func (m *CreateRsp) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_CreateRsp.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_EventID proto.InternalMessageInfo
|
|
|
|
|
var xxx_messageInfo_CreateRsp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *EventID) GetID() int64 {
|
|
|
|
|
func (m *CreateRsp) GetID() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ID
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type EventWthID struct {
|
|
|
|
|
type UpdateReq struct {
|
|
|
|
|
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
|
Event *Event `protobuf:"bytes,2,opt,name=Event,proto3" json:"Event,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
@ -229,46 +268,202 @@ type EventWthID struct {
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventWthID) Reset() { *m = EventWthID{} }
|
|
|
|
|
func (m *EventWthID) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*EventWthID) ProtoMessage() {}
|
|
|
|
|
func (*EventWthID) Descriptor() ([]byte, []int) {
|
|
|
|
|
func (m *UpdateReq) Reset() { *m = UpdateReq{} }
|
|
|
|
|
func (m *UpdateReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*UpdateReq) ProtoMessage() {}
|
|
|
|
|
func (*UpdateReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{3}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventWthID) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_EventWthID.Unmarshal(m, b)
|
|
|
|
|
func (m *UpdateReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_UpdateReq.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventWthID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_EventWthID.Marshal(b, m, deterministic)
|
|
|
|
|
func (m *UpdateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_UpdateReq.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventWthID) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_EventWthID.Merge(m, src)
|
|
|
|
|
func (m *UpdateReq) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_UpdateReq.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventWthID) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_EventWthID.Size(m)
|
|
|
|
|
func (m *UpdateReq) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_UpdateReq.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *EventWthID) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_EventWthID.DiscardUnknown(m)
|
|
|
|
|
func (m *UpdateReq) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_UpdateReq.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_EventWthID proto.InternalMessageInfo
|
|
|
|
|
var xxx_messageInfo_UpdateReq proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *EventWthID) GetID() int64 {
|
|
|
|
|
func (m *UpdateReq) GetID() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ID
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *EventWthID) GetEvent() *Event {
|
|
|
|
|
func (m *UpdateReq) GetEvent() *Event {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Event
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Date struct {
|
|
|
|
|
type DeleteReq struct {
|
|
|
|
|
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *DeleteReq) Reset() { *m = DeleteReq{} }
|
|
|
|
|
func (m *DeleteReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*DeleteReq) ProtoMessage() {}
|
|
|
|
|
func (*DeleteReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{4}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *DeleteReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_DeleteReq.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *DeleteReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_DeleteReq.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *DeleteReq) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_DeleteReq.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *DeleteReq) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_DeleteReq.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *DeleteReq) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_DeleteReq.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeleteReq proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *DeleteReq) GetID() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ID
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ListResp struct {
|
|
|
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ListResp) Reset() { *m = ListResp{} }
|
|
|
|
|
func (m *ListResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*ListResp) ProtoMessage() {}
|
|
|
|
|
func (*ListResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{5}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ListResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_ListResp.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *ListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_ListResp.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *ListResp) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_ListResp.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *ListResp) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_ListResp.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *ListResp) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_ListResp.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *ListResp) GetEvents() []*Event {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Events
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetByIDReq struct {
|
|
|
|
|
ID int64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDReq) Reset() { *m = GetByIDReq{} }
|
|
|
|
|
func (m *GetByIDReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetByIDReq) ProtoMessage() {}
|
|
|
|
|
func (*GetByIDReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{6}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetByIDReq.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetByIDReq.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDReq) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetByIDReq.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDReq) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetByIDReq.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDReq) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetByIDReq.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetByIDReq proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDReq) GetID() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.ID
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetByIDResp struct {
|
|
|
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDResp) Reset() { *m = GetByIDResp{} }
|
|
|
|
|
func (m *GetByIDResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetByIDResp) ProtoMessage() {}
|
|
|
|
|
func (*GetByIDResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{7}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetByIDResp.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetByIDResp.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDResp) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetByIDResp.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDResp) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetByIDResp.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByIDResp) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetByIDResp.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetByIDResp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetByIDResp) GetEvents() []*Event {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Events
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetByDateReq struct {
|
|
|
|
|
Date *timestamp.Timestamp `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"`
|
|
|
|
|
Range QueryRange `protobuf:"varint,2,opt,name=Range,proto3,enum=grpcserver.QueryRange" json:"Range,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
@ -276,93 +471,135 @@ type Date struct {
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Date) Reset() { *m = Date{} }
|
|
|
|
|
func (m *Date) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*Date) ProtoMessage() {}
|
|
|
|
|
func (*Date) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{4}
|
|
|
|
|
func (m *GetByDateReq) Reset() { *m = GetByDateReq{} }
|
|
|
|
|
func (m *GetByDateReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetByDateReq) ProtoMessage() {}
|
|
|
|
|
func (*GetByDateReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{8}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Date) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_Date.Unmarshal(m, b)
|
|
|
|
|
func (m *GetByDateReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetByDateReq.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *Date) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_Date.Marshal(b, m, deterministic)
|
|
|
|
|
func (m *GetByDateReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetByDateReq.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *Date) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_Date.Merge(m, src)
|
|
|
|
|
func (m *GetByDateReq) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetByDateReq.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *Date) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_Date.Size(m)
|
|
|
|
|
func (m *GetByDateReq) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetByDateReq.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *Date) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_Date.DiscardUnknown(m)
|
|
|
|
|
func (m *GetByDateReq) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetByDateReq.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_Date proto.InternalMessageInfo
|
|
|
|
|
var xxx_messageInfo_GetByDateReq proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *Date) GetDate() *timestamp.Timestamp {
|
|
|
|
|
func (m *GetByDateReq) GetDate() *timestamp.Timestamp {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Date
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *Date) GetRange() QueryRange {
|
|
|
|
|
func (m *GetByDateReq) GetRange() QueryRange {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Range
|
|
|
|
|
}
|
|
|
|
|
return QueryRange_DAY
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type GetByDateResp struct {
|
|
|
|
|
Events []*Event `protobuf:"bytes,1,rep,name=Events,proto3" json:"Events,omitempty"`
|
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByDateResp) Reset() { *m = GetByDateResp{} }
|
|
|
|
|
func (m *GetByDateResp) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*GetByDateResp) ProtoMessage() {}
|
|
|
|
|
func (*GetByDateResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
return fileDescriptor_afa6debe97205904, []int{9}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *GetByDateResp) XXX_Unmarshal(b []byte) error {
|
|
|
|
|
return xxx_messageInfo_GetByDateResp.Unmarshal(m, b)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByDateResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
|
return xxx_messageInfo_GetByDateResp.Marshal(b, m, deterministic)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByDateResp) XXX_Merge(src proto.Message) {
|
|
|
|
|
xxx_messageInfo_GetByDateResp.Merge(m, src)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByDateResp) XXX_Size() int {
|
|
|
|
|
return xxx_messageInfo_GetByDateResp.Size(m)
|
|
|
|
|
}
|
|
|
|
|
func (m *GetByDateResp) XXX_DiscardUnknown() {
|
|
|
|
|
xxx_messageInfo_GetByDateResp.DiscardUnknown(m)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_GetByDateResp proto.InternalMessageInfo
|
|
|
|
|
|
|
|
|
|
func (m *GetByDateResp) GetEvents() []*Event {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Events
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterEnum("grpcserver.QueryRange", QueryRange_name, QueryRange_value)
|
|
|
|
|
proto.RegisterType((*Event)(nil), "grpcserver.Event")
|
|
|
|
|
proto.RegisterType((*EventList)(nil), "grpcserver.EventList")
|
|
|
|
|
proto.RegisterType((*EventID)(nil), "grpcserver.EventID")
|
|
|
|
|
proto.RegisterType((*EventWthID)(nil), "grpcserver.EventWthID")
|
|
|
|
|
proto.RegisterType((*Date)(nil), "grpcserver.Date")
|
|
|
|
|
proto.RegisterType((*CreateReq)(nil), "grpcserver.CreateReq")
|
|
|
|
|
proto.RegisterType((*CreateRsp)(nil), "grpcserver.CreateRsp")
|
|
|
|
|
proto.RegisterType((*UpdateReq)(nil), "grpcserver.UpdateReq")
|
|
|
|
|
proto.RegisterType((*DeleteReq)(nil), "grpcserver.DeleteReq")
|
|
|
|
|
proto.RegisterType((*ListResp)(nil), "grpcserver.ListResp")
|
|
|
|
|
proto.RegisterType((*GetByIDReq)(nil), "grpcserver.GetByIDReq")
|
|
|
|
|
proto.RegisterType((*GetByIDResp)(nil), "grpcserver.GetByIDResp")
|
|
|
|
|
proto.RegisterType((*GetByDateReq)(nil), "grpcserver.GetByDateReq")
|
|
|
|
|
proto.RegisterType((*GetByDateResp)(nil), "grpcserver.GetByDateResp")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("grpcserver.proto", fileDescriptor_afa6debe97205904) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptor_afa6debe97205904 = []byte{
|
|
|
|
|
// 546 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x8a, 0xd3, 0x5c,
|
|
|
|
|
0x14, 0x9d, 0xb4, 0xf9, 0x99, 0xee, 0x7e, 0x5f, 0xcd, 0x6c, 0xb5,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 0x16, 0xbe, 0x86, 0x46, 0x16, 0x00, 0x5c, 0x59, 0xc1, 0x32, 0x33,
|
|
|
|
|
0xd6, 0xc3, 0xca, 0x73, 0xa1, 0xee, 0x83, 0x51, 0xac, 0x05, 0xcd, 0x0d, 0x5e, 0x96, 0x0d, 0x6b,
|
|
|
|
|
0xff, 0x16, 0x24, 0xf5, 0xe8, 0xef, 0x7c, 0x2b, 0xbd, 0xd7, 0x17, 0xba, 0xe8, 0xfb, 0xf8, 0x77,
|
|
|
|
|
0x00, 0x00, 0x00, 0xff, 0xff, 0x60, 0x63, 0x06, 0xc6, 0xd6, 0x05, 0x00, 0x00,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
@ -377,12 +614,12 @@ const _ = grpc.SupportPackageIsVersion4
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type GrpcClient interface {
|
|
|
|
|
Create(ctx context.Context, in *Event, opts ...grpc.CallOption) (*EventID, error)
|
|
|
|
|
Update(ctx context.Context, in *EventWthID, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
|
|
|
Delete(ctx context.Context, in *EventID, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
|
|
|
List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventList, error)
|
|
|
|
|
GetByID(ctx context.Context, in *EventID, opts ...grpc.CallOption) (*EventList, error)
|
|
|
|
|
GetByDate(ctx context.Context, in *Date, opts ...grpc.CallOption) (*EventList, error)
|
|
|
|
|
Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRsp, error)
|
|
|
|
|
Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
|
|
|
Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
|
|
|
List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListResp, error)
|
|
|
|
|
GetByID(ctx context.Context, in *GetByIDReq, opts ...grpc.CallOption) (*GetByIDResp, error)
|
|
|
|
|
GetByDate(ctx context.Context, in *GetByDateReq, opts ...grpc.CallOption) (*GetByDateResp, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type grpcClient struct {
|
|
|
|
@ -393,8 +630,8 @@ func NewGrpcClient(cc *grpc.ClientConn) GrpcClient {
|
|
|
|
|
return &grpcClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) Create(ctx context.Context, in *Event, opts ...grpc.CallOption) (*EventID, error) {
|
|
|
|
|
out := new(EventID)
|
|
|
|
|
func (c *grpcClient) Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRsp, error) {
|
|
|
|
|
out := new(CreateRsp)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/Create", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
@ -402,7 +639,7 @@ func (c *grpcClient) Create(ctx context.Context, in *Event, opts ...grpc.CallOpt
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) Update(ctx context.Context, in *EventWthID, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
|
|
|
func (c *grpcClient) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
|
|
|
out := new(empty.Empty)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/Update", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -411,7 +648,7 @@ func (c *grpcClient) Update(ctx context.Context, in *EventWthID, opts ...grpc.Ca
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) Delete(ctx context.Context, in *EventID, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
|
|
|
func (c *grpcClient) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
|
|
|
out := new(empty.Empty)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/Delete", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
@ -420,8 +657,8 @@ func (c *grpcClient) Delete(ctx context.Context, in *EventID, opts ...grpc.CallO
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EventList, error) {
|
|
|
|
|
out := new(EventList)
|
|
|
|
|
func (c *grpcClient) List(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListResp, error) {
|
|
|
|
|
out := new(ListResp)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/List", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
@ -429,8 +666,8 @@ func (c *grpcClient) List(ctx context.Context, in *empty.Empty, opts ...grpc.Cal
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) GetByID(ctx context.Context, in *EventID, opts ...grpc.CallOption) (*EventList, error) {
|
|
|
|
|
out := new(EventList)
|
|
|
|
|
func (c *grpcClient) GetByID(ctx context.Context, in *GetByIDReq, opts ...grpc.CallOption) (*GetByIDResp, error) {
|
|
|
|
|
out := new(GetByIDResp)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/GetByID", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
@ -438,8 +675,8 @@ func (c *grpcClient) GetByID(ctx context.Context, in *EventID, opts ...grpc.Call
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *grpcClient) GetByDate(ctx context.Context, in *Date, opts ...grpc.CallOption) (*EventList, error) {
|
|
|
|
|
out := new(EventList)
|
|
|
|
|
func (c *grpcClient) GetByDate(ctx context.Context, in *GetByDateReq, opts ...grpc.CallOption) (*GetByDateResp, error) {
|
|
|
|
|
out := new(GetByDateResp)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/grpcserver.grpc/GetByDate", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
@ -449,34 +686,34 @@ func (c *grpcClient) GetByDate(ctx context.Context, in *Date, opts ...grpc.CallO
|
|
|
|
|
|
|
|
|
|
// GrpcServer is the server API for Grpc service.
|
|
|
|
|
type GrpcServer interface {
|
|
|
|
|
Create(context.Context, *Event) (*EventID, error)
|
|
|
|
|
Update(context.Context, *EventWthID) (*empty.Empty, error)
|
|
|
|
|
Delete(context.Context, *EventID) (*empty.Empty, error)
|
|
|
|
|
List(context.Context, *empty.Empty) (*EventList, error)
|
|
|
|
|
GetByID(context.Context, *EventID) (*EventList, error)
|
|
|
|
|
GetByDate(context.Context, *Date) (*EventList, error)
|
|
|
|
|
Create(context.Context, *CreateReq) (*CreateRsp, error)
|
|
|
|
|
Update(context.Context, *UpdateReq) (*empty.Empty, error)
|
|
|
|
|
Delete(context.Context, *DeleteReq) (*empty.Empty, error)
|
|
|
|
|
List(context.Context, *empty.Empty) (*ListResp, error)
|
|
|
|
|
GetByID(context.Context, *GetByIDReq) (*GetByIDResp, error)
|
|
|
|
|
GetByDate(context.Context, *GetByDateReq) (*GetByDateResp, error)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedGrpcServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedGrpcServer struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UnimplementedGrpcServer) Create(ctx context.Context, req *Event) (*EventID, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) Create(ctx context.Context, req *CreateReq) (*CreateRsp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedGrpcServer) Update(ctx context.Context, req *EventWthID) (*empty.Empty, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) Update(ctx context.Context, req *UpdateReq) (*empty.Empty, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedGrpcServer) Delete(ctx context.Context, req *EventID) (*empty.Empty, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) Delete(ctx context.Context, req *DeleteReq) (*empty.Empty, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedGrpcServer) List(ctx context.Context, req *empty.Empty) (*EventList, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) List(ctx context.Context, req *empty.Empty) (*ListResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedGrpcServer) GetByID(ctx context.Context, req *EventID) (*EventList, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) GetByID(ctx context.Context, req *GetByIDReq) (*GetByIDResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetByID not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedGrpcServer) GetByDate(ctx context.Context, req *Date) (*EventList, error) {
|
|
|
|
|
func (*UnimplementedGrpcServer) GetByDate(ctx context.Context, req *GetByDateReq) (*GetByDateResp, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetByDate not implemented")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -485,7 +722,7 @@ func RegisterGrpcServer(s *grpc.Server, srv GrpcServer) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Grpc_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(Event)
|
|
|
|
|
in := new(CreateReq)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@ -497,13 +734,13 @@ func _Grpc_Create_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
|
|
|
|
FullMethod: "/grpcserver.grpc/Create",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(GrpcServer).Create(ctx, req.(*Event))
|
|
|
|
|
return srv.(GrpcServer).Create(ctx, req.(*CreateReq))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Grpc_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(EventWthID)
|
|
|
|
|
in := new(UpdateReq)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@ -515,13 +752,13 @@ func _Grpc_Update_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
|
|
|
|
FullMethod: "/grpcserver.grpc/Update",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(GrpcServer).Update(ctx, req.(*EventWthID))
|
|
|
|
|
return srv.(GrpcServer).Update(ctx, req.(*UpdateReq))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Grpc_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(EventID)
|
|
|
|
|
in := new(DeleteReq)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@ -533,7 +770,7 @@ func _Grpc_Delete_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
|
|
|
|
FullMethod: "/grpcserver.grpc/Delete",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(GrpcServer).Delete(ctx, req.(*EventID))
|
|
|
|
|
return srv.(GrpcServer).Delete(ctx, req.(*DeleteReq))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
@ -557,7 +794,7 @@ func _Grpc_List_Handler(srv interface{}, ctx context.Context, dec func(interface
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Grpc_GetByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(EventID)
|
|
|
|
|
in := new(GetByIDReq)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@ -569,13 +806,13 @@ func _Grpc_GetByID_Handler(srv interface{}, ctx context.Context, dec func(interf
|
|
|
|
|
FullMethod: "/grpcserver.grpc/GetByID",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(GrpcServer).GetByID(ctx, req.(*EventID))
|
|
|
|
|
return srv.(GrpcServer).GetByID(ctx, req.(*GetByIDReq))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _Grpc_GetByDate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(Date)
|
|
|
|
|
in := new(GetByDateReq)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
@ -587,7 +824,7 @@ func _Grpc_GetByDate_Handler(srv interface{}, ctx context.Context, dec func(inte
|
|
|
|
|
FullMethod: "/grpcserver.grpc/GetByDate",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(GrpcServer).GetByDate(ctx, req.(*Date))
|
|
|
|
|
return srv.(GrpcServer).GetByDate(ctx, req.(*GetByDateReq))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|