pb

package
v0.0.0-...-4c04d20 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_calendar_service_proto protoreflect.FileDescriptor

Functions

func RegisterCalendarServer

func RegisterCalendarServer(s *grpc.Server, srv CalendarServer)

Types

type CalendarClient

type CalendarClient interface {
	CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*CreateEventReply, error)
	DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*DeleteEventReply, error)
	ListEvent(ctx context.Context, in *ListEventRequest, opts ...grpc.CallOption) (*ListEventReply, error)
	ServiceStatus(ctx context.Context, in *ServiceStatusRequest, opts ...grpc.CallOption) (*ServiceStatusReply, 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

CalendarServer is the server API for Calendar service.

type CreateEventReply

type CreateEventReply struct {
	EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	Err     string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventReply) Descriptor deprecated

func (*CreateEventReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateEventReply.ProtoReflect.Descriptor instead.

func (*CreateEventReply) GetErr

func (x *CreateEventReply) GetErr() string

func (*CreateEventReply) GetEventId

func (x *CreateEventReply) GetEventId() string

func (*CreateEventReply) ProtoMessage

func (*CreateEventReply) ProtoMessage()

func (*CreateEventReply) ProtoReflect

func (x *CreateEventReply) ProtoReflect() protoreflect.Message

func (*CreateEventReply) Reset

func (x *CreateEventReply) Reset()

func (*CreateEventReply) String

func (x *CreateEventReply) String() string

type CreateEventRequest

type CreateEventRequest struct {
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventRequest) Descriptor deprecated

func (*CreateEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetEvent

func (x *CreateEventRequest) GetEvent() *Event

func (*CreateEventRequest) ProtoMessage

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect

func (x *CreateEventRequest) ProtoReflect() protoreflect.Message

func (*CreateEventRequest) Reset

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String

func (x *CreateEventRequest) String() string

type DeleteEventReply

type DeleteEventReply struct {
	Err string `protobuf:"bytes,1,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEventReply) Descriptor deprecated

func (*DeleteEventReply) Descriptor() ([]byte, []int)

Deprecated: Use DeleteEventReply.ProtoReflect.Descriptor instead.

func (*DeleteEventReply) GetErr

func (x *DeleteEventReply) GetErr() string

func (*DeleteEventReply) ProtoMessage

func (*DeleteEventReply) ProtoMessage()

func (*DeleteEventReply) ProtoReflect

func (x *DeleteEventReply) ProtoReflect() protoreflect.Message

func (*DeleteEventReply) Reset

func (x *DeleteEventReply) Reset()

func (*DeleteEventReply) String

func (x *DeleteEventReply) String() string

type DeleteEventRequest

type DeleteEventRequest struct {
	EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
	UserId  uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEventRequest) Descriptor deprecated

func (*DeleteEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteEventRequest.ProtoReflect.Descriptor instead.

func (*DeleteEventRequest) GetEventId

func (x *DeleteEventRequest) GetEventId() string

func (*DeleteEventRequest) GetUserId

func (x *DeleteEventRequest) GetUserId() uint64

func (*DeleteEventRequest) ProtoMessage

func (*DeleteEventRequest) ProtoMessage()

func (*DeleteEventRequest) ProtoReflect

func (x *DeleteEventRequest) ProtoReflect() protoreflect.Message

func (*DeleteEventRequest) Reset

func (x *DeleteEventRequest) Reset()

func (*DeleteEventRequest) String

func (x *DeleteEventRequest) String() string

type Event

type Event struct {
	Id      string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId  uint64                 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Name    string                 `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Details string                 `protobuf:"bytes,4,opt,name=details,proto3" json:"details,omitempty"`
	Start   *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start,proto3" json:"start,omitempty"`
	End     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end,proto3" json:"end,omitempty"`
	Color   string                 `protobuf:"bytes,7,opt,name=color,proto3" json:"color,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetColor

func (x *Event) GetColor() string

func (*Event) GetDetails

func (x *Event) GetDetails() string

func (*Event) GetEnd

func (x *Event) GetEnd() *timestamppb.Timestamp

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetStart

func (x *Event) GetStart() *timestamppb.Timestamp

func (*Event) GetUserId

func (x *Event) GetUserId() uint64

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type ListEventReply

type ListEventReply struct {
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	Err    string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventReply) Descriptor deprecated

func (*ListEventReply) Descriptor() ([]byte, []int)

Deprecated: Use ListEventReply.ProtoReflect.Descriptor instead.

func (*ListEventReply) GetErr

func (x *ListEventReply) GetErr() string

func (*ListEventReply) GetEvents

func (x *ListEventReply) GetEvents() []*Event

func (*ListEventReply) ProtoMessage

func (*ListEventReply) ProtoMessage()

func (*ListEventReply) ProtoReflect

func (x *ListEventReply) ProtoReflect() protoreflect.Message

func (*ListEventReply) Reset

func (x *ListEventReply) Reset()

func (*ListEventReply) String

func (x *ListEventReply) String() string

type ListEventRequest

type ListEventRequest struct {
	UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventRequest) Descriptor deprecated

func (*ListEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEventRequest.ProtoReflect.Descriptor instead.

func (*ListEventRequest) GetUserId

func (x *ListEventRequest) GetUserId() uint64

func (*ListEventRequest) ProtoMessage

func (*ListEventRequest) ProtoMessage()

func (*ListEventRequest) ProtoReflect

func (x *ListEventRequest) ProtoReflect() protoreflect.Message

func (*ListEventRequest) Reset

func (x *ListEventRequest) Reset()

func (*ListEventRequest) String

func (x *ListEventRequest) String() string

type ServiceStatusReply

type ServiceStatusReply struct {
	Code int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Err  string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceStatusReply) Descriptor deprecated

func (*ServiceStatusReply) Descriptor() ([]byte, []int)

Deprecated: Use ServiceStatusReply.ProtoReflect.Descriptor instead.

func (*ServiceStatusReply) GetCode

func (x *ServiceStatusReply) GetCode() int32

func (*ServiceStatusReply) GetErr

func (x *ServiceStatusReply) GetErr() string

func (*ServiceStatusReply) ProtoMessage

func (*ServiceStatusReply) ProtoMessage()

func (*ServiceStatusReply) ProtoReflect

func (x *ServiceStatusReply) ProtoReflect() protoreflect.Message

func (*ServiceStatusReply) Reset

func (x *ServiceStatusReply) Reset()

func (*ServiceStatusReply) String

func (x *ServiceStatusReply) String() string

type ServiceStatusRequest

type ServiceStatusRequest struct {
	// contains filtered or unexported fields
}

func (*ServiceStatusRequest) Descriptor deprecated

func (*ServiceStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceStatusRequest.ProtoReflect.Descriptor instead.

func (*ServiceStatusRequest) ProtoMessage

func (*ServiceStatusRequest) ProtoMessage()

func (*ServiceStatusRequest) ProtoReflect

func (x *ServiceStatusRequest) ProtoReflect() protoreflect.Message

func (*ServiceStatusRequest) Reset

func (x *ServiceStatusRequest) Reset()

func (*ServiceStatusRequest) String

func (x *ServiceStatusRequest) String() string

type UnimplementedCalendarServer

type UnimplementedCalendarServer struct {
}

UnimplementedCalendarServer can be embedded to have forward compatible implementations.

func (*UnimplementedCalendarServer) CreateEvent

func (*UnimplementedCalendarServer) DeleteEvent

func (*UnimplementedCalendarServer) ListEvent

func (*UnimplementedCalendarServer) ServiceStatus

Jump to

Keyboard shortcuts

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