Documentation ¶
Overview ¶
Package dormitory_room_cache is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterDometryCacheHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDometryCacheHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DometryCacheClient) error
- func RegisterDometryCacheHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDometryCacheHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DometryCacheServer) error
- func RegisterDometryCacheServer(s grpc.ServiceRegistrar, srv DometryCacheServer)
- type AddItemRequest
- func (*AddItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemRequest) GetChannelId() int64
- func (x *AddItemRequest) GetItem() *Item
- func (x *AddItemRequest) GetListId() string
- func (*AddItemRequest) ProtoMessage()
- func (x *AddItemRequest) ProtoReflect() protoreflect.Message
- func (x *AddItemRequest) Reset()
- func (x *AddItemRequest) String() string
- type CreateListRequest
- type DeleteByIDRequest
- func (*DeleteByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteByIDRequest) GetChannelId() int64
- func (x *DeleteByIDRequest) GetItemId() string
- func (x *DeleteByIDRequest) GetListId() string
- func (*DeleteByIDRequest) ProtoMessage()
- func (x *DeleteByIDRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteByIDRequest) Reset()
- func (x *DeleteByIDRequest) String() string
- type DeleteByIndexRequest
- func (*DeleteByIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteByIndexRequest) GetChannelId() int64
- func (x *DeleteByIndexRequest) GetIndex() uint64
- func (x *DeleteByIndexRequest) GetListId() string
- func (*DeleteByIndexRequest) ProtoMessage()
- func (x *DeleteByIndexRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteByIndexRequest) Reset()
- func (x *DeleteByIndexRequest) String() string
- type DeleteListRequest
- func (*DeleteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteListRequest) GetChannelId() int64
- func (x *DeleteListRequest) GetListId() string
- func (*DeleteListRequest) ProtoMessage()
- func (x *DeleteListRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteListRequest) Reset()
- func (x *DeleteListRequest) String() string
- type DometryCacheClient
- type DometryCacheServer
- type Empty
- type GetAllListsRequest
- func (*GetAllListsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllListsRequest) GetChannelId() int64
- func (*GetAllListsRequest) ProtoMessage()
- func (x *GetAllListsRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllListsRequest) Reset()
- func (x *GetAllListsRequest) String() string
- type GetAllListsResponse
- func (*GetAllListsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllListsResponse) GetLists() []*List
- func (*GetAllListsResponse) ProtoMessage()
- func (x *GetAllListsResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllListsResponse) Reset()
- func (x *GetAllListsResponse) String() string
- type GetByIDRequest
- func (*GetByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIDRequest) GetChannelId() int64
- func (x *GetByIDRequest) GetItemId() string
- func (x *GetByIDRequest) GetListId() string
- func (*GetByIDRequest) ProtoMessage()
- func (x *GetByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetByIDRequest) Reset()
- func (x *GetByIDRequest) String() string
- type GetByIDResponce
- type GetByIndexRequest
- func (*GetByIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIndexRequest) GetChannelId() int64
- func (x *GetByIndexRequest) GetIndex() uint64
- func (x *GetByIndexRequest) GetListId() string
- func (*GetByIndexRequest) ProtoMessage()
- func (x *GetByIndexRequest) ProtoReflect() protoreflect.Message
- func (x *GetByIndexRequest) Reset()
- func (x *GetByIndexRequest) String() string
- type GetByIndexResponce
- type GetListRequest
- func (*GetListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetListRequest) GetChannelId() int64
- func (x *GetListRequest) GetListId() string
- func (*GetListRequest) ProtoMessage()
- func (x *GetListRequest) ProtoReflect() protoreflect.Message
- func (x *GetListRequest) Reset()
- func (x *GetListRequest) String() string
- type GetListResponce
- type Item
- type List
- type SyncRequest
- type UnimplementedDometryCacheServer
- func (UnimplementedDometryCacheServer) AddItem(context.Context, *AddItemRequest) (*Empty, error)
- func (UnimplementedDometryCacheServer) CreateList(context.Context, *CreateListRequest) (*Empty, error)
- func (UnimplementedDometryCacheServer) DeleteByID(context.Context, *DeleteByIDRequest) (*Empty, error)
- func (UnimplementedDometryCacheServer) DeleteByIndex(context.Context, *DeleteByIndexRequest) (*Empty, error)
- func (UnimplementedDometryCacheServer) DeleteList(context.Context, *DeleteListRequest) (*Empty, error)
- func (UnimplementedDometryCacheServer) GetAllLists(context.Context, *GetAllListsRequest) (*GetAllListsResponse, error)
- func (UnimplementedDometryCacheServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponce, error)
- func (UnimplementedDometryCacheServer) GetByIndex(context.Context, *GetByIndexRequest) (*GetByIndexResponce, error)
- func (UnimplementedDometryCacheServer) GetList(context.Context, *GetListRequest) (*GetListResponce, error)
- func (UnimplementedDometryCacheServer) Sync(context.Context, *SyncRequest) (*Empty, error)
- type UnsafeDometryCacheServer
Constants ¶
This section is empty.
Variables ¶
var DometryCache_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dometry_room_cache.DometryCache", HandlerType: (*DometryCacheServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sync", Handler: _DometryCache_Sync_Handler, }, { MethodName: "GetAllLists", Handler: _DometryCache_GetAllLists_Handler, }, { MethodName: "CreateList", Handler: _DometryCache_CreateList_Handler, }, { MethodName: "GetList", Handler: _DometryCache_GetList_Handler, }, { MethodName: "DeleteList", Handler: _DometryCache_DeleteList_Handler, }, { MethodName: "GetByID", Handler: _DometryCache_GetByID_Handler, }, { MethodName: "GetByIndex", Handler: _DometryCache_GetByIndex_Handler, }, { MethodName: "DeleteByID", Handler: _DometryCache_DeleteByID_Handler, }, { MethodName: "DeleteByIndex", Handler: _DometryCache_DeleteByIndex_Handler, }, { MethodName: "AddItem", Handler: _DometryCache_AddItem_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "dormitry_room_cache/dormitry_room_cache.proto", }
DometryCache_ServiceDesc is the grpc.ServiceDesc for DometryCache service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_dormitry_room_cache_dormitry_room_cache_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDometryCacheHandler ¶
func RegisterDometryCacheHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDometryCacheHandler registers the http handlers for service DometryCache to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDometryCacheHandlerClient ¶
func RegisterDometryCacheHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DometryCacheClient) error
RegisterDometryCacheHandlerClient registers the http handlers for service DometryCache to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DometryCacheClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DometryCacheClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DometryCacheClient" to call the correct interceptors.
func RegisterDometryCacheHandlerFromEndpoint ¶
func RegisterDometryCacheHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDometryCacheHandlerFromEndpoint is same as RegisterDometryCacheHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDometryCacheHandlerServer ¶
func RegisterDometryCacheHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DometryCacheServer) error
RegisterDometryCacheHandlerServer registers the http handlers for service DometryCache to "mux". UnaryRPC :call DometryCacheServer 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 RegisterDometryCacheHandlerFromEndpoint instead.
func RegisterDometryCacheServer ¶
func RegisterDometryCacheServer(s grpc.ServiceRegistrar, srv DometryCacheServer)
Types ¶
type AddItemRequest ¶
type AddItemRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` Item *Item `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*AddItemRequest) Descriptor
deprecated
func (*AddItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddItemRequest.ProtoReflect.Descriptor instead.
func (*AddItemRequest) GetChannelId ¶
func (x *AddItemRequest) GetChannelId() int64
func (*AddItemRequest) GetItem ¶
func (x *AddItemRequest) GetItem() *Item
func (*AddItemRequest) GetListId ¶
func (x *AddItemRequest) GetListId() string
func (*AddItemRequest) ProtoMessage ¶
func (*AddItemRequest) ProtoMessage()
func (*AddItemRequest) ProtoReflect ¶
func (x *AddItemRequest) ProtoReflect() protoreflect.Message
func (*AddItemRequest) Reset ¶
func (x *AddItemRequest) Reset()
func (*AddItemRequest) String ¶
func (x *AddItemRequest) String() string
type CreateListRequest ¶
type CreateListRequest struct { List *List `protobuf:"bytes,1,opt,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*CreateListRequest) Descriptor
deprecated
func (*CreateListRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateListRequest.ProtoReflect.Descriptor instead.
func (*CreateListRequest) GetList ¶
func (x *CreateListRequest) GetList() *List
func (*CreateListRequest) ProtoMessage ¶
func (*CreateListRequest) ProtoMessage()
func (*CreateListRequest) ProtoReflect ¶
func (x *CreateListRequest) ProtoReflect() protoreflect.Message
func (*CreateListRequest) Reset ¶
func (x *CreateListRequest) Reset()
func (*CreateListRequest) String ¶
func (x *CreateListRequest) String() string
type DeleteByIDRequest ¶
type DeleteByIDRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` ItemId string `protobuf:"bytes,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteByIDRequest) Descriptor
deprecated
func (*DeleteByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteByIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteByIDRequest) GetChannelId ¶
func (x *DeleteByIDRequest) GetChannelId() int64
func (*DeleteByIDRequest) GetItemId ¶
func (x *DeleteByIDRequest) GetItemId() string
func (*DeleteByIDRequest) GetListId ¶
func (x *DeleteByIDRequest) GetListId() string
func (*DeleteByIDRequest) ProtoMessage ¶
func (*DeleteByIDRequest) ProtoMessage()
func (*DeleteByIDRequest) ProtoReflect ¶
func (x *DeleteByIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteByIDRequest) Reset ¶
func (x *DeleteByIDRequest) Reset()
func (*DeleteByIDRequest) String ¶
func (x *DeleteByIDRequest) String() string
type DeleteByIndexRequest ¶
type DeleteByIndexRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*DeleteByIndexRequest) Descriptor
deprecated
func (*DeleteByIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteByIndexRequest.ProtoReflect.Descriptor instead.
func (*DeleteByIndexRequest) GetChannelId ¶
func (x *DeleteByIndexRequest) GetChannelId() int64
func (*DeleteByIndexRequest) GetIndex ¶
func (x *DeleteByIndexRequest) GetIndex() uint64
func (*DeleteByIndexRequest) GetListId ¶
func (x *DeleteByIndexRequest) GetListId() string
func (*DeleteByIndexRequest) ProtoMessage ¶
func (*DeleteByIndexRequest) ProtoMessage()
func (*DeleteByIndexRequest) ProtoReflect ¶
func (x *DeleteByIndexRequest) ProtoReflect() protoreflect.Message
func (*DeleteByIndexRequest) Reset ¶
func (x *DeleteByIndexRequest) Reset()
func (*DeleteByIndexRequest) String ¶
func (x *DeleteByIndexRequest) String() string
type DeleteListRequest ¶
type DeleteListRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteListRequest) Descriptor
deprecated
func (*DeleteListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteListRequest.ProtoReflect.Descriptor instead.
func (*DeleteListRequest) GetChannelId ¶
func (x *DeleteListRequest) GetChannelId() int64
func (*DeleteListRequest) GetListId ¶
func (x *DeleteListRequest) GetListId() string
func (*DeleteListRequest) ProtoMessage ¶
func (*DeleteListRequest) ProtoMessage()
func (*DeleteListRequest) ProtoReflect ¶
func (x *DeleteListRequest) ProtoReflect() protoreflect.Message
func (*DeleteListRequest) Reset ¶
func (x *DeleteListRequest) Reset()
func (*DeleteListRequest) String ¶
func (x *DeleteListRequest) String() string
type DometryCacheClient ¶
type DometryCacheClient interface { Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*Empty, error) GetAllLists(ctx context.Context, in *GetAllListsRequest, opts ...grpc.CallOption) (*GetAllListsResponse, error) CreateList(ctx context.Context, in *CreateListRequest, opts ...grpc.CallOption) (*Empty, error) GetList(ctx context.Context, in *GetListRequest, opts ...grpc.CallOption) (*GetListResponce, error) DeleteList(ctx context.Context, in *DeleteListRequest, opts ...grpc.CallOption) (*Empty, error) GetByID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GetByIDResponce, error) GetByIndex(ctx context.Context, in *GetByIndexRequest, opts ...grpc.CallOption) (*GetByIndexResponce, error) DeleteByID(ctx context.Context, in *DeleteByIDRequest, opts ...grpc.CallOption) (*Empty, error) DeleteByIndex(ctx context.Context, in *DeleteByIndexRequest, opts ...grpc.CallOption) (*Empty, error) AddItem(ctx context.Context, in *AddItemRequest, opts ...grpc.CallOption) (*Empty, error) }
DometryCacheClient is the client API for DometryCache 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 NewDometryCacheClient ¶
func NewDometryCacheClient(cc grpc.ClientConnInterface) DometryCacheClient
type DometryCacheServer ¶
type DometryCacheServer interface { Sync(context.Context, *SyncRequest) (*Empty, error) GetAllLists(context.Context, *GetAllListsRequest) (*GetAllListsResponse, error) CreateList(context.Context, *CreateListRequest) (*Empty, error) GetList(context.Context, *GetListRequest) (*GetListResponce, error) DeleteList(context.Context, *DeleteListRequest) (*Empty, error) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponce, error) GetByIndex(context.Context, *GetByIndexRequest) (*GetByIndexResponce, error) DeleteByID(context.Context, *DeleteByIDRequest) (*Empty, error) DeleteByIndex(context.Context, *DeleteByIndexRequest) (*Empty, error) AddItem(context.Context, *AddItemRequest) (*Empty, error) // contains filtered or unexported methods }
DometryCacheServer is the server API for DometryCache service. All implementations must embed UnimplementedDometryCacheServer for forward compatibility
type Empty ¶
type Empty struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetAllListsRequest ¶
type GetAllListsRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` // contains filtered or unexported fields }
func (*GetAllListsRequest) Descriptor
deprecated
func (*GetAllListsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllListsRequest.ProtoReflect.Descriptor instead.
func (*GetAllListsRequest) GetChannelId ¶
func (x *GetAllListsRequest) GetChannelId() int64
func (*GetAllListsRequest) ProtoMessage ¶
func (*GetAllListsRequest) ProtoMessage()
func (*GetAllListsRequest) ProtoReflect ¶
func (x *GetAllListsRequest) ProtoReflect() protoreflect.Message
func (*GetAllListsRequest) Reset ¶
func (x *GetAllListsRequest) Reset()
func (*GetAllListsRequest) String ¶
func (x *GetAllListsRequest) String() string
type GetAllListsResponse ¶
type GetAllListsResponse struct { Lists []*List `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*GetAllListsResponse) Descriptor
deprecated
func (*GetAllListsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllListsResponse.ProtoReflect.Descriptor instead.
func (*GetAllListsResponse) GetLists ¶
func (x *GetAllListsResponse) GetLists() []*List
func (*GetAllListsResponse) ProtoMessage ¶
func (*GetAllListsResponse) ProtoMessage()
func (*GetAllListsResponse) ProtoReflect ¶
func (x *GetAllListsResponse) ProtoReflect() protoreflect.Message
func (*GetAllListsResponse) Reset ¶
func (x *GetAllListsResponse) Reset()
func (*GetAllListsResponse) String ¶
func (x *GetAllListsResponse) String() string
type GetByIDRequest ¶
type GetByIDRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` ItemId string `protobuf:"bytes,3,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` // contains filtered or unexported fields }
func (*GetByIDRequest) Descriptor
deprecated
func (*GetByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.
func (*GetByIDRequest) GetChannelId ¶
func (x *GetByIDRequest) GetChannelId() int64
func (*GetByIDRequest) GetItemId ¶
func (x *GetByIDRequest) GetItemId() string
func (*GetByIDRequest) GetListId ¶
func (x *GetByIDRequest) GetListId() string
func (*GetByIDRequest) ProtoMessage ¶
func (*GetByIDRequest) ProtoMessage()
func (*GetByIDRequest) ProtoReflect ¶
func (x *GetByIDRequest) ProtoReflect() protoreflect.Message
func (*GetByIDRequest) Reset ¶
func (x *GetByIDRequest) Reset()
func (*GetByIDRequest) String ¶
func (x *GetByIDRequest) String() string
type GetByIDResponce ¶
type GetByIDResponce struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*GetByIDResponce) Descriptor
deprecated
func (*GetByIDResponce) Descriptor() ([]byte, []int)
Deprecated: Use GetByIDResponce.ProtoReflect.Descriptor instead.
func (*GetByIDResponce) GetItem ¶
func (x *GetByIDResponce) GetItem() *Item
func (*GetByIDResponce) ProtoMessage ¶
func (*GetByIDResponce) ProtoMessage()
func (*GetByIDResponce) ProtoReflect ¶
func (x *GetByIDResponce) ProtoReflect() protoreflect.Message
func (*GetByIDResponce) Reset ¶
func (x *GetByIDResponce) Reset()
func (*GetByIDResponce) String ¶
func (x *GetByIDResponce) String() string
type GetByIndexRequest ¶
type GetByIndexRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` Index uint64 `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"` // contains filtered or unexported fields }
func (*GetByIndexRequest) Descriptor
deprecated
func (*GetByIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIndexRequest.ProtoReflect.Descriptor instead.
func (*GetByIndexRequest) GetChannelId ¶
func (x *GetByIndexRequest) GetChannelId() int64
func (*GetByIndexRequest) GetIndex ¶
func (x *GetByIndexRequest) GetIndex() uint64
func (*GetByIndexRequest) GetListId ¶
func (x *GetByIndexRequest) GetListId() string
func (*GetByIndexRequest) ProtoMessage ¶
func (*GetByIndexRequest) ProtoMessage()
func (*GetByIndexRequest) ProtoReflect ¶
func (x *GetByIndexRequest) ProtoReflect() protoreflect.Message
func (*GetByIndexRequest) Reset ¶
func (x *GetByIndexRequest) Reset()
func (*GetByIndexRequest) String ¶
func (x *GetByIndexRequest) String() string
type GetByIndexResponce ¶
type GetByIndexResponce struct { Item *Item `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*GetByIndexResponce) Descriptor
deprecated
func (*GetByIndexResponce) Descriptor() ([]byte, []int)
Deprecated: Use GetByIndexResponce.ProtoReflect.Descriptor instead.
func (*GetByIndexResponce) GetItem ¶
func (x *GetByIndexResponce) GetItem() *Item
func (*GetByIndexResponce) ProtoMessage ¶
func (*GetByIndexResponce) ProtoMessage()
func (*GetByIndexResponce) ProtoReflect ¶
func (x *GetByIndexResponce) ProtoReflect() protoreflect.Message
func (*GetByIndexResponce) Reset ¶
func (x *GetByIndexResponce) Reset()
func (*GetByIndexResponce) String ¶
func (x *GetByIndexResponce) String() string
type GetListRequest ¶
type GetListRequest struct { ChannelId int64 `protobuf:"varint,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` ListId string `protobuf:"bytes,2,opt,name=list_id,json=listId,proto3" json:"list_id,omitempty"` // contains filtered or unexported fields }
func (*GetListRequest) Descriptor
deprecated
func (*GetListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetListRequest.ProtoReflect.Descriptor instead.
func (*GetListRequest) GetChannelId ¶
func (x *GetListRequest) GetChannelId() int64
func (*GetListRequest) GetListId ¶
func (x *GetListRequest) GetListId() string
func (*GetListRequest) ProtoMessage ¶
func (*GetListRequest) ProtoMessage()
func (*GetListRequest) ProtoReflect ¶
func (x *GetListRequest) ProtoReflect() protoreflect.Message
func (*GetListRequest) Reset ¶
func (x *GetListRequest) Reset()
func (*GetListRequest) String ¶
func (x *GetListRequest) String() string
type GetListResponce ¶
type GetListResponce struct { List *List `protobuf:"bytes,1,opt,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*GetListResponce) Descriptor
deprecated
func (*GetListResponce) Descriptor() ([]byte, []int)
Deprecated: Use GetListResponce.ProtoReflect.Descriptor instead.
func (*GetListResponce) GetList ¶
func (x *GetListResponce) GetList() *List
func (*GetListResponce) ProtoMessage ¶
func (*GetListResponce) ProtoMessage()
func (*GetListResponce) ProtoReflect ¶
func (x *GetListResponce) ProtoReflect() protoreflect.Message
func (*GetListResponce) Reset ¶
func (x *GetListResponce) Reset()
func (*GetListResponce) String ¶
func (x *GetListResponce) String() string
type Item ¶
type Item struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*Item) Descriptor
deprecated
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type List ¶
type List struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ChannelId int64 `protobuf:"varint,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` Items []*Item `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*List) Descriptor
deprecated
func (*List) GetChannelId ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type SyncRequest ¶
type SyncRequest struct { Lists []*List `protobuf:"bytes,1,rep,name=lists,proto3" json:"lists,omitempty"` // contains filtered or unexported fields }
func (*SyncRequest) Descriptor
deprecated
func (*SyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) GetLists ¶
func (x *SyncRequest) GetLists() []*List
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) ProtoReflect ¶
func (x *SyncRequest) ProtoReflect() protoreflect.Message
func (*SyncRequest) Reset ¶
func (x *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (x *SyncRequest) String() string
type UnimplementedDometryCacheServer ¶
type UnimplementedDometryCacheServer struct { }
UnimplementedDometryCacheServer must be embedded to have forward compatible implementations.
func (UnimplementedDometryCacheServer) AddItem ¶
func (UnimplementedDometryCacheServer) AddItem(context.Context, *AddItemRequest) (*Empty, error)
func (UnimplementedDometryCacheServer) CreateList ¶
func (UnimplementedDometryCacheServer) CreateList(context.Context, *CreateListRequest) (*Empty, error)
func (UnimplementedDometryCacheServer) DeleteByID ¶
func (UnimplementedDometryCacheServer) DeleteByID(context.Context, *DeleteByIDRequest) (*Empty, error)
func (UnimplementedDometryCacheServer) DeleteByIndex ¶
func (UnimplementedDometryCacheServer) DeleteByIndex(context.Context, *DeleteByIndexRequest) (*Empty, error)
func (UnimplementedDometryCacheServer) DeleteList ¶
func (UnimplementedDometryCacheServer) DeleteList(context.Context, *DeleteListRequest) (*Empty, error)
func (UnimplementedDometryCacheServer) GetAllLists ¶
func (UnimplementedDometryCacheServer) GetAllLists(context.Context, *GetAllListsRequest) (*GetAllListsResponse, error)
func (UnimplementedDometryCacheServer) GetByID ¶
func (UnimplementedDometryCacheServer) GetByID(context.Context, *GetByIDRequest) (*GetByIDResponce, error)
func (UnimplementedDometryCacheServer) GetByIndex ¶
func (UnimplementedDometryCacheServer) GetByIndex(context.Context, *GetByIndexRequest) (*GetByIndexResponce, error)
func (UnimplementedDometryCacheServer) GetList ¶
func (UnimplementedDometryCacheServer) GetList(context.Context, *GetListRequest) (*GetListResponce, error)
func (UnimplementedDometryCacheServer) Sync ¶
func (UnimplementedDometryCacheServer) Sync(context.Context, *SyncRequest) (*Empty, error)
type UnsafeDometryCacheServer ¶
type UnsafeDometryCacheServer interface {
// contains filtered or unexported methods
}
UnsafeDometryCacheServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DometryCacheServer will result in compilation errors.