Documentation ¶
Index ¶
- Variables
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- type AccountServiceClient
- type AccountServiceServer
- type AccountService_GetLikedTwitsClient
- type AccountService_GetLikedTwitsServer
- type AccountService_GetRetwitedTwitsClient
- type AccountService_GetRetwitedTwitsServer
- type AccountService_GetUserTwitsClient
- type AccountService_GetUserTwitsServer
- type AccountTwit
- func (*AccountTwit) Descriptor() ([]byte, []int)deprecated
- func (x *AccountTwit) GetDate() *timestamppb.Timestamp
- func (x *AccountTwit) GetId() *AccountTwitUUID
- func (x *AccountTwit) GetNickname() string
- func (x *AccountTwit) GetText() string
- func (*AccountTwit) ProtoMessage()
- func (x *AccountTwit) ProtoReflect() protoreflect.Message
- func (x *AccountTwit) Reset()
- func (x *AccountTwit) String() string
- type AccountTwitUUID
- type AccountUUID
- type UnimplementedAccountServiceServer
- func (UnimplementedAccountServiceServer) GetLikedTwits(*AccountUUID, AccountService_GetLikedTwitsServer) error
- func (UnimplementedAccountServiceServer) GetRetwitedTwits(*AccountUUID, AccountService_GetRetwitedTwitsServer) error
- func (UnimplementedAccountServiceServer) GetUserTwits(*AccountUUID, AccountService_GetUserTwitsServer) error
- type UnsafeAccountServiceServer
Constants ¶
This section is empty.
Variables ¶
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "main.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "getLikedTwits", Handler: _AccountService_GetLikedTwits_Handler, ServerStreams: true, }, { StreamName: "getRetwitedTwits", Handler: _AccountService_GetRetwitedTwits_Handler, ServerStreams: true, }, { StreamName: "getUserTwits", Handler: _AccountService_GetUserTwits_Handler, ServerStreams: true, }, }, Metadata: "account.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
Types ¶
type AccountServiceClient ¶
type AccountServiceClient interface { GetLikedTwits(ctx context.Context, in *AccountUUID, opts ...grpc.CallOption) (AccountService_GetLikedTwitsClient, error) GetRetwitedTwits(ctx context.Context, in *AccountUUID, opts ...grpc.CallOption) (AccountService_GetRetwitedTwitsClient, error) GetUserTwits(ctx context.Context, in *AccountUUID, opts ...grpc.CallOption) (AccountService_GetUserTwitsClient, error) }
AccountServiceClient is the client API for AccountService 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 NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceServer ¶
type AccountServiceServer interface { GetLikedTwits(*AccountUUID, AccountService_GetLikedTwitsServer) error GetRetwitedTwits(*AccountUUID, AccountService_GetRetwitedTwitsServer) error GetUserTwits(*AccountUUID, AccountService_GetUserTwitsServer) error // contains filtered or unexported methods }
AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility
type AccountService_GetLikedTwitsClient ¶
type AccountService_GetLikedTwitsClient interface { Recv() (*AccountTwit, error) grpc.ClientStream }
type AccountService_GetLikedTwitsServer ¶
type AccountService_GetLikedTwitsServer interface { Send(*AccountTwit) error grpc.ServerStream }
type AccountService_GetRetwitedTwitsClient ¶
type AccountService_GetRetwitedTwitsClient interface { Recv() (*AccountTwit, error) grpc.ClientStream }
type AccountService_GetRetwitedTwitsServer ¶
type AccountService_GetRetwitedTwitsServer interface { Send(*AccountTwit) error grpc.ServerStream }
type AccountService_GetUserTwitsClient ¶
type AccountService_GetUserTwitsClient interface { Recv() (*AccountTwit, error) grpc.ClientStream }
type AccountService_GetUserTwitsServer ¶
type AccountService_GetUserTwitsServer interface { Send(*AccountTwit) error grpc.ServerStream }
type AccountTwit ¶
type AccountTwit struct { Id *AccountTwitUUID `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 (*AccountTwit) Descriptor
deprecated
func (*AccountTwit) Descriptor() ([]byte, []int)
Deprecated: Use AccountTwit.ProtoReflect.Descriptor instead.
func (*AccountTwit) GetDate ¶
func (x *AccountTwit) GetDate() *timestamppb.Timestamp
func (*AccountTwit) GetId ¶
func (x *AccountTwit) GetId() *AccountTwitUUID
func (*AccountTwit) GetNickname ¶
func (x *AccountTwit) GetNickname() string
func (*AccountTwit) GetText ¶
func (x *AccountTwit) GetText() string
func (*AccountTwit) ProtoMessage ¶
func (*AccountTwit) ProtoMessage()
func (*AccountTwit) ProtoReflect ¶
func (x *AccountTwit) ProtoReflect() protoreflect.Message
func (*AccountTwit) Reset ¶
func (x *AccountTwit) Reset()
func (*AccountTwit) String ¶
func (x *AccountTwit) String() string
type AccountTwitUUID ¶
type AccountTwitUUID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AccountTwitUUID) Descriptor
deprecated
func (*AccountTwitUUID) Descriptor() ([]byte, []int)
Deprecated: Use AccountTwitUUID.ProtoReflect.Descriptor instead.
func (*AccountTwitUUID) GetValue ¶
func (x *AccountTwitUUID) GetValue() string
func (*AccountTwitUUID) ProtoMessage ¶
func (*AccountTwitUUID) ProtoMessage()
func (*AccountTwitUUID) ProtoReflect ¶
func (x *AccountTwitUUID) ProtoReflect() protoreflect.Message
func (*AccountTwitUUID) Reset ¶
func (x *AccountTwitUUID) Reset()
func (*AccountTwitUUID) String ¶
func (x *AccountTwitUUID) String() string
type AccountUUID ¶
type AccountUUID struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*AccountUUID) Descriptor
deprecated
func (*AccountUUID) Descriptor() ([]byte, []int)
Deprecated: Use AccountUUID.ProtoReflect.Descriptor instead.
func (*AccountUUID) GetValue ¶
func (x *AccountUUID) GetValue() string
func (*AccountUUID) ProtoMessage ¶
func (*AccountUUID) ProtoMessage()
func (*AccountUUID) ProtoReflect ¶
func (x *AccountUUID) ProtoReflect() protoreflect.Message
func (*AccountUUID) Reset ¶
func (x *AccountUUID) Reset()
func (*AccountUUID) String ¶
func (x *AccountUUID) String() string
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) GetLikedTwits ¶
func (UnimplementedAccountServiceServer) GetLikedTwits(*AccountUUID, AccountService_GetLikedTwitsServer) error
func (UnimplementedAccountServiceServer) GetRetwitedTwits ¶
func (UnimplementedAccountServiceServer) GetRetwitedTwits(*AccountUUID, AccountService_GetRetwitedTwitsServer) error
func (UnimplementedAccountServiceServer) GetUserTwits ¶
func (UnimplementedAccountServiceServer) GetUserTwits(*AccountUUID, AccountService_GetUserTwitsServer) error
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.