Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)
- type DeleteEventParams
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetAccountId() string
- func (x *Event) GetDtend() *timestamppb.Timestamp
- func (x *Event) GetDtstart() *timestamppb.Timestamp
- func (x *Event) GetId() string
- func (x *Event) GetProps() *structpb.Struct
- func (x *Event) GetRrule() string
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventsServiceClient
- type EventsServiceServer
- type EventsService_ListEventsClient
- type EventsService_ListEventsServer
- type GetEventParams
- type InsertEventParams
- func (*InsertEventParams) Descriptor() ([]byte, []int)deprecated
- func (x *InsertEventParams) GetDtend() *timestamppb.Timestamp
- func (x *InsertEventParams) GetDtstart() *timestamppb.Timestamp
- func (x *InsertEventParams) GetProps() *structpb.Struct
- func (x *InsertEventParams) GetRrule() string
- func (*InsertEventParams) ProtoMessage()
- func (x *InsertEventParams) ProtoReflect() protoreflect.Message
- func (x *InsertEventParams) Reset()
- func (x *InsertEventParams) String() string
- type ListEventsParams
- func (*ListEventsParams) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsParams) GetProps() *structpb.Struct
- func (x *ListEventsParams) GetRange() *ListEventsRange
- func (*ListEventsParams) ProtoMessage()
- func (x *ListEventsParams) ProtoReflect() protoreflect.Message
- func (x *ListEventsParams) Reset()
- func (x *ListEventsParams) String() string
- type ListEventsRange
- func (*ListEventsRange) Descriptor() ([]byte, []int)deprecated
- func (x *ListEventsRange) GetDate() *timestamppb.Timestamp
- func (x *ListEventsRange) GetPeriod() string
- func (*ListEventsRange) ProtoMessage()
- func (x *ListEventsRange) ProtoReflect() protoreflect.Message
- func (x *ListEventsRange) Reset()
- func (x *ListEventsRange) String() string
- type UnimplementedEventsServiceServer
- func (UnimplementedEventsServiceServer) DeleteEvent(context.Context, *DeleteEventParams) (*emptypb.Empty, error)
- func (UnimplementedEventsServiceServer) GetEvent(context.Context, *GetEventParams) (*Event, error)
- func (UnimplementedEventsServiceServer) InsertEvent(context.Context, *InsertEventParams) (*Event, error)
- func (UnimplementedEventsServiceServer) ListEvents(*ListEventsParams, grpc.ServerStreamingServer[Event]) error
- func (UnimplementedEventsServiceServer) UpdateEvent(context.Context, *UpdateEventParams) (*emptypb.Empty, error)
- type UnsafeEventsServiceServer
- type UpdateEventParams
- func (*UpdateEventParams) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEventParams) GetDtend() *timestamppb.Timestamp
- func (x *UpdateEventParams) GetDtstart() *timestamppb.Timestamp
- func (x *UpdateEventParams) GetId() string
- func (x *UpdateEventParams) GetProps() *structpb.Struct
- func (x *UpdateEventParams) GetRrule() string
- func (*UpdateEventParams) ProtoMessage()
- func (x *UpdateEventParams) ProtoReflect() protoreflect.Message
- func (x *UpdateEventParams) Reset()
- func (x *UpdateEventParams) String() string
Constants ¶
const ( EventsService_InsertEvent_FullMethodName = "/devcal.EventsService/InsertEvent" EventsService_GetEvent_FullMethodName = "/devcal.EventsService/GetEvent" EventsService_ListEvents_FullMethodName = "/devcal.EventsService/ListEvents" EventsService_UpdateEvent_FullMethodName = "/devcal.EventsService/UpdateEvent" EventsService_DeleteEvent_FullMethodName = "/devcal.EventsService/DeleteEvent" )
Variables ¶
var EventsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "devcal.EventsService", HandlerType: (*EventsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "InsertEvent", Handler: _EventsService_InsertEvent_Handler, }, { MethodName: "GetEvent", Handler: _EventsService_GetEvent_Handler, }, { MethodName: "UpdateEvent", Handler: _EventsService_UpdateEvent_Handler, }, { MethodName: "DeleteEvent", Handler: _EventsService_DeleteEvent_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ListEvents", Handler: _EventsService_ListEvents_Handler, ServerStreams: true, }, }, Metadata: "devcal.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)
var File_devcal_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEventsServiceServer ¶
func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer)
Types ¶
type DeleteEventParams ¶
type DeleteEventParams struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteEventParams) Descriptor
deprecated
func (*DeleteEventParams) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEventParams.ProtoReflect.Descriptor instead.
func (*DeleteEventParams) GetId ¶ added in v0.2.0
func (x *DeleteEventParams) GetId() string
func (*DeleteEventParams) ProtoMessage ¶
func (*DeleteEventParams) ProtoMessage()
func (*DeleteEventParams) ProtoReflect ¶
func (x *DeleteEventParams) ProtoReflect() protoreflect.Message
func (*DeleteEventParams) Reset ¶
func (x *DeleteEventParams) Reset()
func (*DeleteEventParams) String ¶
func (x *DeleteEventParams) String() string
type Event ¶
type Event struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Dtstart *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=dtstart,proto3" json:"dtstart,omitempty"` Dtend *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=dtend,proto3" json:"dtend,omitempty"` Rrule string `protobuf:"bytes,5,opt,name=rrule,proto3" json:"rrule,omitempty"` Props *structpb.Struct `protobuf:"bytes,6,opt,name=props,proto3" json:"props,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetAccountId ¶ added in v0.2.0
func (*Event) GetDtend ¶
func (x *Event) GetDtend() *timestamppb.Timestamp
func (*Event) GetDtstart ¶
func (x *Event) GetDtstart() *timestamppb.Timestamp
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventsServiceClient ¶
type EventsServiceClient interface { InsertEvent(ctx context.Context, in *InsertEventParams, opts ...grpc.CallOption) (*Event, error) GetEvent(ctx context.Context, in *GetEventParams, opts ...grpc.CallOption) (*Event, error) ListEvents(ctx context.Context, in *ListEventsParams, opts ...grpc.CallOption) (grpc.ServerStreamingClient[Event], error) UpdateEvent(ctx context.Context, in *UpdateEventParams, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteEvent(ctx context.Context, in *DeleteEventParams, opts ...grpc.CallOption) (*emptypb.Empty, 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.
func NewEventsServiceClient ¶
func NewEventsServiceClient(cc grpc.ClientConnInterface) EventsServiceClient
type EventsServiceServer ¶
type EventsServiceServer interface { InsertEvent(context.Context, *InsertEventParams) (*Event, error) GetEvent(context.Context, *GetEventParams) (*Event, error) ListEvents(*ListEventsParams, grpc.ServerStreamingServer[Event]) error UpdateEvent(context.Context, *UpdateEventParams) (*emptypb.Empty, error) DeleteEvent(context.Context, *DeleteEventParams) (*emptypb.Empty, error) // contains filtered or unexported methods }
EventsServiceServer is the server API for EventsService service. All implementations must embed UnimplementedEventsServiceServer for forward compatibility.
type EventsService_ListEventsClient ¶
type EventsService_ListEventsClient = grpc.ServerStreamingClient[Event]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EventsService_ListEventsServer ¶
type EventsService_ListEventsServer = grpc.ServerStreamingServer[Event]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type GetEventParams ¶
type GetEventParams struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetEventParams) Descriptor
deprecated
func (*GetEventParams) Descriptor() ([]byte, []int)
Deprecated: Use GetEventParams.ProtoReflect.Descriptor instead.
func (*GetEventParams) GetId ¶ added in v0.2.0
func (x *GetEventParams) GetId() string
func (*GetEventParams) ProtoMessage ¶
func (*GetEventParams) ProtoMessage()
func (*GetEventParams) ProtoReflect ¶
func (x *GetEventParams) ProtoReflect() protoreflect.Message
func (*GetEventParams) Reset ¶
func (x *GetEventParams) Reset()
func (*GetEventParams) String ¶
func (x *GetEventParams) String() string
type InsertEventParams ¶
type InsertEventParams struct { Dtstart *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=dtstart,proto3" json:"dtstart,omitempty"` Dtend *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dtend,proto3" json:"dtend,omitempty"` Rrule *string `protobuf:"bytes,3,opt,name=rrule,proto3,oneof" json:"rrule,omitempty"` Props *structpb.Struct `protobuf:"bytes,4,opt,name=props,proto3,oneof" json:"props,omitempty"` // contains filtered or unexported fields }
func (*InsertEventParams) Descriptor
deprecated
func (*InsertEventParams) Descriptor() ([]byte, []int)
Deprecated: Use InsertEventParams.ProtoReflect.Descriptor instead.
func (*InsertEventParams) GetDtend ¶
func (x *InsertEventParams) GetDtend() *timestamppb.Timestamp
func (*InsertEventParams) GetDtstart ¶
func (x *InsertEventParams) GetDtstart() *timestamppb.Timestamp
func (*InsertEventParams) GetProps ¶
func (x *InsertEventParams) GetProps() *structpb.Struct
func (*InsertEventParams) GetRrule ¶
func (x *InsertEventParams) GetRrule() string
func (*InsertEventParams) ProtoMessage ¶
func (*InsertEventParams) ProtoMessage()
func (*InsertEventParams) ProtoReflect ¶
func (x *InsertEventParams) ProtoReflect() protoreflect.Message
func (*InsertEventParams) Reset ¶
func (x *InsertEventParams) Reset()
func (*InsertEventParams) String ¶
func (x *InsertEventParams) String() string
type ListEventsParams ¶
type ListEventsParams struct { Range *ListEventsRange `protobuf:"bytes,1,opt,name=range,proto3,oneof" json:"range,omitempty"` Props *structpb.Struct `protobuf:"bytes,3,opt,name=props,proto3,oneof" json:"props,omitempty"` // contains filtered or unexported fields }
func (*ListEventsParams) Descriptor
deprecated
func (*ListEventsParams) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsParams.ProtoReflect.Descriptor instead.
func (*ListEventsParams) GetProps ¶
func (x *ListEventsParams) GetProps() *structpb.Struct
func (*ListEventsParams) GetRange ¶
func (x *ListEventsParams) GetRange() *ListEventsRange
func (*ListEventsParams) ProtoMessage ¶
func (*ListEventsParams) ProtoMessage()
func (*ListEventsParams) ProtoReflect ¶
func (x *ListEventsParams) ProtoReflect() protoreflect.Message
func (*ListEventsParams) Reset ¶
func (x *ListEventsParams) Reset()
func (*ListEventsParams) String ¶
func (x *ListEventsParams) String() string
type ListEventsRange ¶
type ListEventsRange struct { Date *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` Period string `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` // contains filtered or unexported fields }
func (*ListEventsRange) Descriptor
deprecated
func (*ListEventsRange) Descriptor() ([]byte, []int)
Deprecated: Use ListEventsRange.ProtoReflect.Descriptor instead.
func (*ListEventsRange) GetDate ¶
func (x *ListEventsRange) GetDate() *timestamppb.Timestamp
func (*ListEventsRange) GetPeriod ¶
func (x *ListEventsRange) GetPeriod() string
func (*ListEventsRange) ProtoMessage ¶
func (*ListEventsRange) ProtoMessage()
func (*ListEventsRange) ProtoReflect ¶
func (x *ListEventsRange) ProtoReflect() protoreflect.Message
func (*ListEventsRange) Reset ¶
func (x *ListEventsRange) Reset()
func (*ListEventsRange) String ¶
func (x *ListEventsRange) 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) DeleteEvent ¶
func (UnimplementedEventsServiceServer) DeleteEvent(context.Context, *DeleteEventParams) (*emptypb.Empty, error)
func (UnimplementedEventsServiceServer) GetEvent ¶
func (UnimplementedEventsServiceServer) GetEvent(context.Context, *GetEventParams) (*Event, error)
func (UnimplementedEventsServiceServer) InsertEvent ¶
func (UnimplementedEventsServiceServer) InsertEvent(context.Context, *InsertEventParams) (*Event, error)
func (UnimplementedEventsServiceServer) ListEvents ¶
func (UnimplementedEventsServiceServer) ListEvents(*ListEventsParams, grpc.ServerStreamingServer[Event]) error
func (UnimplementedEventsServiceServer) UpdateEvent ¶
func (UnimplementedEventsServiceServer) UpdateEvent(context.Context, *UpdateEventParams) (*emptypb.Empty, error)
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 UpdateEventParams ¶
type UpdateEventParams struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Dtstart *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dtstart,proto3,oneof" json:"dtstart,omitempty"` Dtend *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=dtend,proto3,oneof" json:"dtend,omitempty"` Rrule *string `protobuf:"bytes,4,opt,name=rrule,proto3,oneof" json:"rrule,omitempty"` Props *structpb.Struct `protobuf:"bytes,5,opt,name=props,proto3,oneof" json:"props,omitempty"` // contains filtered or unexported fields }
func (*UpdateEventParams) Descriptor
deprecated
func (*UpdateEventParams) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEventParams.ProtoReflect.Descriptor instead.
func (*UpdateEventParams) GetDtend ¶
func (x *UpdateEventParams) GetDtend() *timestamppb.Timestamp
func (*UpdateEventParams) GetDtstart ¶
func (x *UpdateEventParams) GetDtstart() *timestamppb.Timestamp
func (*UpdateEventParams) GetId ¶ added in v0.2.0
func (x *UpdateEventParams) GetId() string
func (*UpdateEventParams) GetProps ¶
func (x *UpdateEventParams) GetProps() *structpb.Struct
func (*UpdateEventParams) GetRrule ¶
func (x *UpdateEventParams) GetRrule() string
func (*UpdateEventParams) ProtoMessage ¶
func (*UpdateEventParams) ProtoMessage()
func (*UpdateEventParams) ProtoReflect ¶
func (x *UpdateEventParams) ProtoReflect() protoreflect.Message
func (*UpdateEventParams) Reset ¶
func (x *UpdateEventParams) Reset()
func (*UpdateEventParams) String ¶
func (x *UpdateEventParams) String() string