Documentation ¶
Index ¶
- Variables
- func RegisterListServiceServer(s grpc.ServiceRegistrar, srv ListServiceServer)
- type ListName
- type ListResponse
- type ListServiceClient
- type ListServiceServer
- type ListService_GetListsClient
- type ListService_GetListsServer
- type ListService_GetUsersTwitsFromCustomListClient
- type ListService_GetUsersTwitsFromCustomListServer
- type ListTwit
- func (*ListTwit) Descriptor() ([]byte, []int)deprecated
- func (x *ListTwit) GetDate() *timestamppb.Timestamp
- func (x *ListTwit) GetId() *ListUUID
- func (x *ListTwit) GetNickname() string
- func (x *ListTwit) GetText() string
- func (*ListTwit) ProtoMessage()
- func (x *ListTwit) ProtoReflect() protoreflect.Message
- func (x *ListTwit) Reset()
- func (x *ListTwit) String() string
- type ListUUID
- type UnimplementedListServiceServer
- func (UnimplementedListServiceServer) AddUserToCustomList(context.Context, *UserWithList) (*ListResponse, error)
- func (UnimplementedListServiceServer) CreateCustomList(context.Context, *ListName) (*ListResponse, error)
- func (UnimplementedListServiceServer) DeleteCustomList(context.Context, *ListUUID) (*ListResponse, error)
- func (UnimplementedListServiceServer) GetListUsers(context.Context, *ListUUID) (*ListResponse, error)
- func (UnimplementedListServiceServer) GetLists(*UsersUUID, ListService_GetListsServer) error
- func (UnimplementedListServiceServer) GetUsersTwitsFromCustomList(*ListUUID, ListService_GetUsersTwitsFromCustomListServer) error
- func (UnimplementedListServiceServer) RemoveUserFromCustomList(context.Context, *UserWithList) (*ListResponse, error)
- type UnsafeListServiceServer
- type UserWithList
- func (*UserWithList) Descriptor() ([]byte, []int)deprecated
- func (x *UserWithList) GetListUUID() string
- func (x *UserWithList) GetUserWithListUUID() string
- func (*UserWithList) ProtoMessage()
- func (x *UserWithList) ProtoReflect() protoreflect.Message
- func (x *UserWithList) Reset()
- func (x *UserWithList) String() string
- type UsersUUID
Constants ¶
This section is empty.
Variables ¶
var File_lists_proto protoreflect.FileDescriptor
var ListService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "main.ListService", HandlerType: (*ListServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "createCustomList", Handler: _ListService_CreateCustomList_Handler, }, { MethodName: "addUserToCustomList", Handler: _ListService_AddUserToCustomList_Handler, }, { MethodName: "removeUserFromCustomList", Handler: _ListService_RemoveUserFromCustomList_Handler, }, { MethodName: "getListUsers", Handler: _ListService_GetListUsers_Handler, }, { MethodName: "deleteCustomList", Handler: _ListService_DeleteCustomList_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "getLists", Handler: _ListService_GetLists_Handler, ServerStreams: true, }, { StreamName: "getUsersTwitsFromCustomList", Handler: _ListService_GetUsersTwitsFromCustomList_Handler, ServerStreams: true, }, }, Metadata: "lists.proto", }
ListService_ServiceDesc is the grpc.ServiceDesc for ListService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterListServiceServer ¶
func RegisterListServiceServer(s grpc.ServiceRegistrar, srv ListServiceServer)
Types ¶
type ListName ¶
type ListName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` CreatorId string `protobuf:"bytes,2,opt,name=creatorId,proto3" json:"creatorId,omitempty"` // contains filtered or unexported fields }
func (*ListName) Descriptor
deprecated
func (*ListName) GetCreatorId ¶
func (*ListName) ProtoMessage ¶
func (*ListName) ProtoMessage()
func (*ListName) ProtoReflect ¶
func (x *ListName) ProtoReflect() protoreflect.Message
type ListResponse ¶
type ListResponse struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetValue ¶
func (x *ListResponse) GetValue() string
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListServiceClient ¶
type ListServiceClient interface { GetLists(ctx context.Context, in *UsersUUID, opts ...grpc.CallOption) (ListService_GetListsClient, error) CreateCustomList(ctx context.Context, in *ListName, opts ...grpc.CallOption) (*ListResponse, error) AddUserToCustomList(ctx context.Context, in *UserWithList, opts ...grpc.CallOption) (*ListResponse, error) RemoveUserFromCustomList(ctx context.Context, in *UserWithList, opts ...grpc.CallOption) (*ListResponse, error) GetListUsers(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (*ListResponse, error) GetUsersTwitsFromCustomList(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (ListService_GetUsersTwitsFromCustomListClient, error) DeleteCustomList(ctx context.Context, in *ListUUID, opts ...grpc.CallOption) (*ListResponse, error) }
ListServiceClient is the client API for ListService 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 NewListServiceClient ¶
func NewListServiceClient(cc grpc.ClientConnInterface) ListServiceClient
type ListServiceServer ¶
type ListServiceServer interface { GetLists(*UsersUUID, ListService_GetListsServer) error CreateCustomList(context.Context, *ListName) (*ListResponse, error) AddUserToCustomList(context.Context, *UserWithList) (*ListResponse, error) RemoveUserFromCustomList(context.Context, *UserWithList) (*ListResponse, error) GetListUsers(context.Context, *ListUUID) (*ListResponse, error) GetUsersTwitsFromCustomList(*ListUUID, ListService_GetUsersTwitsFromCustomListServer) error DeleteCustomList(context.Context, *ListUUID) (*ListResponse, error) // contains filtered or unexported methods }
ListServiceServer is the server API for ListService service. All implementations must embed UnimplementedListServiceServer for forward compatibility
type ListService_GetListsClient ¶
type ListService_GetListsClient interface { Recv() (*ListName, error) grpc.ClientStream }
type ListService_GetListsServer ¶
type ListService_GetListsServer interface { Send(*ListName) error grpc.ServerStream }
type ListService_GetUsersTwitsFromCustomListClient ¶
type ListService_GetUsersTwitsFromCustomListClient interface { Recv() (*ListTwit, error) grpc.ClientStream }
type ListService_GetUsersTwitsFromCustomListServer ¶
type ListService_GetUsersTwitsFromCustomListServer interface { Send(*ListTwit) error grpc.ServerStream }
type ListTwit ¶
type ListTwit struct { Id *ListUUID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Date *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"` // contains filtered or unexported fields }
func (*ListTwit) Descriptor
deprecated
func (*ListTwit) GetDate ¶
func (x *ListTwit) GetDate() *timestamppb.Timestamp
func (*ListTwit) GetNickname ¶
func (*ListTwit) ProtoMessage ¶
func (*ListTwit) ProtoMessage()
func (*ListTwit) ProtoReflect ¶
func (x *ListTwit) ProtoReflect() protoreflect.Message
type ListUUID ¶
type ListUUID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*ListUUID) Descriptor
deprecated
func (*ListUUID) ProtoMessage ¶
func (*ListUUID) ProtoMessage()
func (*ListUUID) ProtoReflect ¶
func (x *ListUUID) ProtoReflect() protoreflect.Message
type UnimplementedListServiceServer ¶
type UnimplementedListServiceServer struct { }
UnimplementedListServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedListServiceServer) AddUserToCustomList ¶
func (UnimplementedListServiceServer) AddUserToCustomList(context.Context, *UserWithList) (*ListResponse, error)
func (UnimplementedListServiceServer) CreateCustomList ¶
func (UnimplementedListServiceServer) CreateCustomList(context.Context, *ListName) (*ListResponse, error)
func (UnimplementedListServiceServer) DeleteCustomList ¶
func (UnimplementedListServiceServer) DeleteCustomList(context.Context, *ListUUID) (*ListResponse, error)
func (UnimplementedListServiceServer) GetListUsers ¶
func (UnimplementedListServiceServer) GetListUsers(context.Context, *ListUUID) (*ListResponse, error)
func (UnimplementedListServiceServer) GetLists ¶
func (UnimplementedListServiceServer) GetLists(*UsersUUID, ListService_GetListsServer) error
func (UnimplementedListServiceServer) GetUsersTwitsFromCustomList ¶
func (UnimplementedListServiceServer) GetUsersTwitsFromCustomList(*ListUUID, ListService_GetUsersTwitsFromCustomListServer) error
func (UnimplementedListServiceServer) RemoveUserFromCustomList ¶
func (UnimplementedListServiceServer) RemoveUserFromCustomList(context.Context, *UserWithList) (*ListResponse, error)
type UnsafeListServiceServer ¶
type UnsafeListServiceServer interface {
// contains filtered or unexported methods
}
UnsafeListServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ListServiceServer will result in compilation errors.
type UserWithList ¶
type UserWithList struct { ListUUID string `protobuf:"bytes,1,opt,name=listUUID,proto3" json:"listUUID,omitempty"` UserWithListUUID string `protobuf:"bytes,2,opt,name=UserWithListUUID,proto3" json:"UserWithListUUID,omitempty"` // contains filtered or unexported fields }
func (*UserWithList) Descriptor
deprecated
func (*UserWithList) Descriptor() ([]byte, []int)
Deprecated: Use UserWithList.ProtoReflect.Descriptor instead.
func (*UserWithList) GetListUUID ¶
func (x *UserWithList) GetListUUID() string
func (*UserWithList) GetUserWithListUUID ¶
func (x *UserWithList) GetUserWithListUUID() string
func (*UserWithList) ProtoMessage ¶
func (*UserWithList) ProtoMessage()
func (*UserWithList) ProtoReflect ¶
func (x *UserWithList) ProtoReflect() protoreflect.Message
func (*UserWithList) Reset ¶
func (x *UserWithList) Reset()
func (*UserWithList) String ¶
func (x *UserWithList) String() string
type UsersUUID ¶
type UsersUUID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*UsersUUID) Descriptor
deprecated
func (*UsersUUID) ProtoMessage ¶
func (*UsersUUID) ProtoMessage()
func (*UsersUUID) ProtoReflect ¶
func (x *UsersUUID) ProtoReflect() protoreflect.Message