v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventsService_CreateEvent_FullMethodName        = "/events.v1.EventsService/CreateEvent"
	EventsService_UpdateEvent_FullMethodName        = "/events.v1.EventsService/UpdateEvent"
	EventsService_DeleteEvent_FullMethodName        = "/events.v1.EventsService/DeleteEvent"
	EventsService_GetEvent_FullMethodName           = "/events.v1.EventsService/GetEvent"
	EventsService_GetAllUserEvents_FullMethodName   = "/events.v1.EventsService/GetAllUserEvents"
	EventsService_GetEventsForDay_FullMethodName    = "/events.v1.EventsService/GetEventsForDay"
	EventsService_GetEventsForWeek_FullMethodName   = "/events.v1.EventsService/GetEventsForWeek"
	EventsService_GetEventsForMonth_FullMethodName  = "/events.v1.EventsService/GetEventsForMonth"
	EventsService_GetEventsForPeriod_FullMethodName = "/events.v1.EventsService/GetEventsForPeriod"
)

Variables

View Source
var EventsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "events.v1.EventsService",
	HandlerType: (*EventsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateEvent",
			Handler:    _EventsService_CreateEvent_Handler,
		},
		{
			MethodName: "UpdateEvent",
			Handler:    _EventsService_UpdateEvent_Handler,
		},
		{
			MethodName: "DeleteEvent",
			Handler:    _EventsService_DeleteEvent_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _EventsService_GetEvent_Handler,
		},
		{
			MethodName: "GetAllUserEvents",
			Handler:    _EventsService_GetAllUserEvents_Handler,
		},
		{
			MethodName: "GetEventsForDay",
			Handler:    _EventsService_GetEventsForDay_Handler,
		},
		{
			MethodName: "GetEventsForWeek",
			Handler:    _EventsService_GetEventsForWeek_Handler,
		},
		{
			MethodName: "GetEventsForMonth",
			Handler:    _EventsService_GetEventsForMonth_Handler,
		},
		{
			MethodName: "GetEventsForPeriod",
			Handler:    _EventsService_GetEventsForPeriod_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/events/v1/EventsService.proto",
}

EventsService_ServiceDesc is the grpc.ServiceDesc for EventsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_events_v1_EventsService_proto protoreflect.FileDescriptor

Functions

func RegisterEventsServiceHandler

func RegisterEventsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventsServiceHandler registers the http handlers for service EventsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventsServiceHandlerClient

func RegisterEventsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventsServiceClient) error

RegisterEventsServiceHandlerClient registers the http handlers for service EventsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventsServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterEventsServiceHandlerFromEndpoint

func RegisterEventsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventsServiceHandlerFromEndpoint is same as RegisterEventsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventsServiceHandlerServer

func RegisterEventsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventsServiceServer) error

RegisterEventsServiceHandlerServer registers the http handlers for service EventsService to "mux". UnaryRPC :call EventsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventsServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterEventsServiceServer

func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)

Types

type CreateEventRequest

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

func (*CreateEventRequest) Descriptor deprecated

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

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetData

func (x *CreateEventRequest) GetData() *EventData

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 CreateEventResponse

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

func (*CreateEventResponse) Descriptor deprecated

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

Deprecated: Use CreateEventResponse.ProtoReflect.Descriptor instead.

func (*CreateEventResponse) GetEvent

func (x *CreateEventResponse) GetEvent() *Event

func (*CreateEventResponse) ProtoMessage

func (*CreateEventResponse) ProtoMessage()

func (*CreateEventResponse) ProtoReflect

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

func (*CreateEventResponse) Reset

func (x *CreateEventResponse) Reset()

func (*CreateEventResponse) String

func (x *CreateEventResponse) String() string

type DeleteEventRequest

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

func (*DeleteEventRequest) Descriptor deprecated

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

Deprecated: Use DeleteEventRequest.ProtoReflect.Descriptor instead.

func (*DeleteEventRequest) GetId

func (x *DeleteEventRequest) GetId() string

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 DeleteEventResponse

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

func (*DeleteEventResponse) Descriptor deprecated

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

Deprecated: Use DeleteEventResponse.ProtoReflect.Descriptor instead.

func (*DeleteEventResponse) ProtoMessage

func (*DeleteEventResponse) ProtoMessage()

func (*DeleteEventResponse) ProtoReflect

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

func (*DeleteEventResponse) Reset

func (x *DeleteEventResponse) Reset()

func (*DeleteEventResponse) String

func (x *DeleteEventResponse) String() string

type Event

type Event struct {
	Id   string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data *EventData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetData

func (x *Event) GetData() *EventData

func (*Event) GetId

func (x *Event) GetId() string

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 EventData

type EventData struct {
	Title       string                 `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Datetime    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=datetime,proto3" json:"datetime,omitempty"`
	Duration    *durationpb.Duration   `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
	Description string                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	UserId      string                 `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	RemindIn    *durationpb.Duration   `protobuf:"bytes,6,opt,name=remind_in,json=remindIn,proto3" json:"remind_in,omitempty"`
	// contains filtered or unexported fields
}

func (*EventData) Descriptor deprecated

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

Deprecated: Use EventData.ProtoReflect.Descriptor instead.

func (*EventData) GetDatetime

func (x *EventData) GetDatetime() *timestamppb.Timestamp

func (*EventData) GetDescription

func (x *EventData) GetDescription() string

func (*EventData) GetDuration

func (x *EventData) GetDuration() *durationpb.Duration

func (*EventData) GetRemindIn

func (x *EventData) GetRemindIn() *durationpb.Duration

func (*EventData) GetTitle

func (x *EventData) GetTitle() string

func (*EventData) GetUserId

func (x *EventData) GetUserId() string

func (*EventData) ProtoMessage

func (*EventData) ProtoMessage()

func (*EventData) ProtoReflect

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

func (*EventData) Reset

func (x *EventData) Reset()

func (*EventData) String

func (x *EventData) String() string

type EventsServiceClient

type EventsServiceClient interface {
	// POST /v1/events
	CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*CreateEventResponse, error)
	// PUT /v1/events/{id}
	UpdateEvent(ctx context.Context, in *UpdateEventRequest, opts ...grpc.CallOption) (*UpdateEventResponse, error)
	// DELETE /v1/events/{id}
	DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*DeleteEventResponse, error)
	// GET /v1/events/{id}
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*GetEventResponse, error)
	// GET /v1/events/user/{user_id}
	GetAllUserEvents(ctx context.Context, in *GetAllUserEventsRequest, opts ...grpc.CallOption) (*GetAllUserEventsResponse, error)
	// GET /v1/events/day
	GetEventsForDay(ctx context.Context, in *GetEventsForDayRequest, opts ...grpc.CallOption) (*GetEventsForDayResponse, error)
	// GET /v1/events/week
	GetEventsForWeek(ctx context.Context, in *GetEventsForWeekRequest, opts ...grpc.CallOption) (*GetEventsForWeekResponse, error)
	// GET /v1/events/month
	GetEventsForMonth(ctx context.Context, in *GetEventsForMonthRequest, opts ...grpc.CallOption) (*GetEventsForMonthResponse, error)
	// GET /v1/events/period
	GetEventsForPeriod(ctx context.Context, in *GetEventsForPeriodRequest, opts ...grpc.CallOption) (*GetEventsForPeriodResponse, error)
}

EventsServiceClient is the client API for EventsService 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.

type EventsServiceServer

type EventsServiceServer interface {
	// POST /v1/events
	CreateEvent(context.Context, *CreateEventRequest) (*CreateEventResponse, error)
	// PUT /v1/events/{id}
	UpdateEvent(context.Context, *UpdateEventRequest) (*UpdateEventResponse, error)
	// DELETE /v1/events/{id}
	DeleteEvent(context.Context, *DeleteEventRequest) (*DeleteEventResponse, error)
	// GET /v1/events/{id}
	GetEvent(context.Context, *GetEventRequest) (*GetEventResponse, error)
	// GET /v1/events/user/{user_id}
	GetAllUserEvents(context.Context, *GetAllUserEventsRequest) (*GetAllUserEventsResponse, error)
	// GET /v1/events/day
	GetEventsForDay(context.Context, *GetEventsForDayRequest) (*GetEventsForDayResponse, error)
	// GET /v1/events/week
	GetEventsForWeek(context.Context, *GetEventsForWeekRequest) (*GetEventsForWeekResponse, error)
	// GET /v1/events/month
	GetEventsForMonth(context.Context, *GetEventsForMonthRequest) (*GetEventsForMonthResponse, error)
	// GET /v1/events/period
	GetEventsForPeriod(context.Context, *GetEventsForPeriodRequest) (*GetEventsForPeriodResponse, error)
	// contains filtered or unexported methods
}

EventsServiceServer is the server API for EventsService service. All implementations must embed UnimplementedEventsServiceServer for forward compatibility.

type GetAllUserEventsRequest

type GetAllUserEventsRequest struct {
	UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllUserEventsRequest) Descriptor deprecated

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

Deprecated: Use GetAllUserEventsRequest.ProtoReflect.Descriptor instead.

func (*GetAllUserEventsRequest) GetUserId

func (x *GetAllUserEventsRequest) GetUserId() string

func (*GetAllUserEventsRequest) ProtoMessage

func (*GetAllUserEventsRequest) ProtoMessage()

func (*GetAllUserEventsRequest) ProtoReflect

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

func (*GetAllUserEventsRequest) Reset

func (x *GetAllUserEventsRequest) Reset()

func (*GetAllUserEventsRequest) String

func (x *GetAllUserEventsRequest) String() string

type GetAllUserEventsResponse

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

func (*GetAllUserEventsResponse) Descriptor deprecated

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

Deprecated: Use GetAllUserEventsResponse.ProtoReflect.Descriptor instead.

func (*GetAllUserEventsResponse) GetEvents

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

func (*GetAllUserEventsResponse) ProtoMessage

func (*GetAllUserEventsResponse) ProtoMessage()

func (*GetAllUserEventsResponse) ProtoReflect

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

func (*GetAllUserEventsResponse) Reset

func (x *GetAllUserEventsResponse) Reset()

func (*GetAllUserEventsResponse) String

func (x *GetAllUserEventsResponse) String() string

type GetEventRequest

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

func (*GetEventRequest) Descriptor deprecated

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

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetId

func (x *GetEventRequest) GetId() string

func (*GetEventRequest) ProtoMessage

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect

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

func (*GetEventRequest) Reset

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String

func (x *GetEventRequest) String() string

type GetEventResponse

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

func (*GetEventResponse) Descriptor deprecated

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

Deprecated: Use GetEventResponse.ProtoReflect.Descriptor instead.

func (*GetEventResponse) GetEvent

func (x *GetEventResponse) GetEvent() *Event

func (*GetEventResponse) ProtoMessage

func (*GetEventResponse) ProtoMessage()

func (*GetEventResponse) ProtoReflect

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

func (*GetEventResponse) Reset

func (x *GetEventResponse) Reset()

func (*GetEventResponse) String

func (x *GetEventResponse) String() string

type GetEventsForDayRequest

type GetEventsForDayRequest struct {
	Date   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	UserId *string                `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsForDayRequest) Descriptor deprecated

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

Deprecated: Use GetEventsForDayRequest.ProtoReflect.Descriptor instead.

func (*GetEventsForDayRequest) GetDate

func (*GetEventsForDayRequest) GetUserId

func (x *GetEventsForDayRequest) GetUserId() string

func (*GetEventsForDayRequest) ProtoMessage

func (*GetEventsForDayRequest) ProtoMessage()

func (*GetEventsForDayRequest) ProtoReflect

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

func (*GetEventsForDayRequest) Reset

func (x *GetEventsForDayRequest) Reset()

func (*GetEventsForDayRequest) String

func (x *GetEventsForDayRequest) String() string

type GetEventsForDayResponse

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

func (*GetEventsForDayResponse) Descriptor deprecated

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

Deprecated: Use GetEventsForDayResponse.ProtoReflect.Descriptor instead.

func (*GetEventsForDayResponse) GetEvents

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

func (*GetEventsForDayResponse) ProtoMessage

func (*GetEventsForDayResponse) ProtoMessage()

func (*GetEventsForDayResponse) ProtoReflect

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

func (*GetEventsForDayResponse) Reset

func (x *GetEventsForDayResponse) Reset()

func (*GetEventsForDayResponse) String

func (x *GetEventsForDayResponse) String() string

type GetEventsForMonthRequest

type GetEventsForMonthRequest struct {
	Date   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	UserId *string                `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsForMonthRequest) Descriptor deprecated

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

Deprecated: Use GetEventsForMonthRequest.ProtoReflect.Descriptor instead.

func (*GetEventsForMonthRequest) GetDate

func (*GetEventsForMonthRequest) GetUserId

func (x *GetEventsForMonthRequest) GetUserId() string

func (*GetEventsForMonthRequest) ProtoMessage

func (*GetEventsForMonthRequest) ProtoMessage()

func (*GetEventsForMonthRequest) ProtoReflect

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

func (*GetEventsForMonthRequest) Reset

func (x *GetEventsForMonthRequest) Reset()

func (*GetEventsForMonthRequest) String

func (x *GetEventsForMonthRequest) String() string

type GetEventsForMonthResponse

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

func (*GetEventsForMonthResponse) Descriptor deprecated

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

Deprecated: Use GetEventsForMonthResponse.ProtoReflect.Descriptor instead.

func (*GetEventsForMonthResponse) GetEvents

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

func (*GetEventsForMonthResponse) ProtoMessage

func (*GetEventsForMonthResponse) ProtoMessage()

func (*GetEventsForMonthResponse) ProtoReflect

func (*GetEventsForMonthResponse) Reset

func (x *GetEventsForMonthResponse) Reset()

func (*GetEventsForMonthResponse) String

func (x *GetEventsForMonthResponse) String() string

type GetEventsForPeriodRequest

type GetEventsForPeriodRequest struct {
	StartDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	UserId    *string                `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsForPeriodRequest) Descriptor deprecated

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

Deprecated: Use GetEventsForPeriodRequest.ProtoReflect.Descriptor instead.

func (*GetEventsForPeriodRequest) GetEndDate

func (*GetEventsForPeriodRequest) GetStartDate

func (x *GetEventsForPeriodRequest) GetStartDate() *timestamppb.Timestamp

func (*GetEventsForPeriodRequest) GetUserId

func (x *GetEventsForPeriodRequest) GetUserId() string

func (*GetEventsForPeriodRequest) ProtoMessage

func (*GetEventsForPeriodRequest) ProtoMessage()

func (*GetEventsForPeriodRequest) ProtoReflect

func (*GetEventsForPeriodRequest) Reset

func (x *GetEventsForPeriodRequest) Reset()

func (*GetEventsForPeriodRequest) String

func (x *GetEventsForPeriodRequest) String() string

type GetEventsForPeriodResponse

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

func (*GetEventsForPeriodResponse) Descriptor deprecated

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

Deprecated: Use GetEventsForPeriodResponse.ProtoReflect.Descriptor instead.

func (*GetEventsForPeriodResponse) GetEvents

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

func (*GetEventsForPeriodResponse) ProtoMessage

func (*GetEventsForPeriodResponse) ProtoMessage()

func (*GetEventsForPeriodResponse) ProtoReflect

func (*GetEventsForPeriodResponse) Reset

func (x *GetEventsForPeriodResponse) Reset()

func (*GetEventsForPeriodResponse) String

func (x *GetEventsForPeriodResponse) String() string

type GetEventsForWeekRequest

type GetEventsForWeekRequest struct {
	Date   *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	UserId *string                `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventsForWeekRequest) Descriptor deprecated

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

Deprecated: Use GetEventsForWeekRequest.ProtoReflect.Descriptor instead.

func (*GetEventsForWeekRequest) GetDate

func (*GetEventsForWeekRequest) GetUserId

func (x *GetEventsForWeekRequest) GetUserId() string

func (*GetEventsForWeekRequest) ProtoMessage

func (*GetEventsForWeekRequest) ProtoMessage()

func (*GetEventsForWeekRequest) ProtoReflect

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

func (*GetEventsForWeekRequest) Reset

func (x *GetEventsForWeekRequest) Reset()

func (*GetEventsForWeekRequest) String

func (x *GetEventsForWeekRequest) String() string

type GetEventsForWeekResponse

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

func (*GetEventsForWeekResponse) Descriptor deprecated

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

Deprecated: Use GetEventsForWeekResponse.ProtoReflect.Descriptor instead.

func (*GetEventsForWeekResponse) GetEvents

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

func (*GetEventsForWeekResponse) ProtoMessage

func (*GetEventsForWeekResponse) ProtoMessage()

func (*GetEventsForWeekResponse) ProtoReflect

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

func (*GetEventsForWeekResponse) Reset

func (x *GetEventsForWeekResponse) Reset()

func (*GetEventsForWeekResponse) String

func (x *GetEventsForWeekResponse) String() string

type UnimplementedEventsServiceServer

type UnimplementedEventsServiceServer struct{}

UnimplementedEventsServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventsServiceServer) CreateEvent

func (UnimplementedEventsServiceServer) DeleteEvent

func (UnimplementedEventsServiceServer) GetAllUserEvents

func (UnimplementedEventsServiceServer) GetEvent

func (UnimplementedEventsServiceServer) GetEventsForDay

func (UnimplementedEventsServiceServer) GetEventsForMonth

func (UnimplementedEventsServiceServer) GetEventsForPeriod

func (UnimplementedEventsServiceServer) GetEventsForWeek

func (UnimplementedEventsServiceServer) UpdateEvent

type UnsafeEventsServiceServer

type UnsafeEventsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventsServiceServer will result in compilation errors.

type UpdateEventRequest

type UpdateEventRequest struct {
	Id   string     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Data *EventData `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateEventRequest) Descriptor deprecated

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

Deprecated: Use UpdateEventRequest.ProtoReflect.Descriptor instead.

func (*UpdateEventRequest) GetData

func (x *UpdateEventRequest) GetData() *EventData

func (*UpdateEventRequest) GetId

func (x *UpdateEventRequest) GetId() string

func (*UpdateEventRequest) ProtoMessage

func (*UpdateEventRequest) ProtoMessage()

func (*UpdateEventRequest) ProtoReflect

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

func (*UpdateEventRequest) Reset

func (x *UpdateEventRequest) Reset()

func (*UpdateEventRequest) String

func (x *UpdateEventRequest) String() string

type UpdateEventResponse

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

func (*UpdateEventResponse) Descriptor deprecated

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

Deprecated: Use UpdateEventResponse.ProtoReflect.Descriptor instead.

func (*UpdateEventResponse) GetEvent

func (x *UpdateEventResponse) GetEvent() *Event

func (*UpdateEventResponse) ProtoMessage

func (*UpdateEventResponse) ProtoMessage()

func (*UpdateEventResponse) ProtoReflect

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

func (*UpdateEventResponse) Reset

func (x *UpdateEventResponse) Reset()

func (*UpdateEventResponse) String

func (x *UpdateEventResponse) String() string

Jump to

Keyboard shortcuts

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