Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterCacheServiceServer(s grpc.ServiceRegistrar, srv CacheServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type CacheServiceClient
- type CacheServiceServer
- type CreateTweetRequest
- func (*CreateTweetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTweetRequest) GetContent() string
- func (x *CreateTweetRequest) GetUsername() string
- func (*CreateTweetRequest) ProtoMessage()
- func (x *CreateTweetRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTweetRequest) Reset()
- func (x *CreateTweetRequest) String() string
- type CreateTweetResponse
- func (*CreateTweetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTweetResponse) GetTweet() *Tweet
- func (*CreateTweetResponse) ProtoMessage()
- func (x *CreateTweetResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTweetResponse) Reset()
- func (x *CreateTweetResponse) String() string
- type DeleteTweetRequest
- type DeleteTweetResponse
- func (*DeleteTweetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTweetResponse) GetId() string
- func (*DeleteTweetResponse) ProtoMessage()
- func (x *DeleteTweetResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteTweetResponse) Reset()
- func (x *DeleteTweetResponse) String() string
- type FindTweetByIdRequest
- func (*FindTweetByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindTweetByIdRequest) GetId() string
- func (*FindTweetByIdRequest) ProtoMessage()
- func (x *FindTweetByIdRequest) ProtoReflect() protoreflect.Message
- func (x *FindTweetByIdRequest) Reset()
- func (x *FindTweetByIdRequest) String() string
- type FindTweetByIdResponse
- func (*FindTweetByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindTweetByIdResponse) GetTweet() *Tweet
- func (*FindTweetByIdResponse) ProtoMessage()
- func (x *FindTweetByIdResponse) ProtoReflect() protoreflect.Message
- func (x *FindTweetByIdResponse) Reset()
- func (x *FindTweetByIdResponse) String() string
- type FindUserByIdRequest
- func (*FindUserByIdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserByIdRequest) GetId() string
- func (*FindUserByIdRequest) ProtoMessage()
- func (x *FindUserByIdRequest) ProtoReflect() protoreflect.Message
- func (x *FindUserByIdRequest) Reset()
- func (x *FindUserByIdRequest) String() string
- type FindUserByIdResponse
- func (*FindUserByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindUserByIdResponse) GetUser() *User
- func (*FindUserByIdResponse) ProtoMessage()
- func (x *FindUserByIdResponse) ProtoReflect() protoreflect.Message
- func (x *FindUserByIdResponse) Reset()
- func (x *FindUserByIdResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type SaveUserRequest
- func (*SaveUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveUserRequest) GetPassHash() []byte
- func (x *SaveUserRequest) GetUsername() string
- func (*SaveUserRequest) ProtoMessage()
- func (x *SaveUserRequest) ProtoReflect() protoreflect.Message
- func (x *SaveUserRequest) Reset()
- func (x *SaveUserRequest) String() string
- type SaveUserResponse
- type Tweet
- func (*Tweet) Descriptor() ([]byte, []int)deprecated
- func (x *Tweet) GetContent() string
- func (x *Tweet) GetCreatedAt() *timestamppb.Timestamp
- func (x *Tweet) GetId() string
- func (x *Tweet) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Tweet) GetUsername() string
- func (*Tweet) ProtoMessage()
- func (x *Tweet) ProtoReflect() protoreflect.Message
- func (x *Tweet) Reset()
- func (x *Tweet) String() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
- type UnimplementedCacheServiceServer
- func (UnimplementedCacheServiceServer) CreateTweet(context.Context, *CreateTweetRequest) (*CreateTweetResponse, error)
- func (UnimplementedCacheServiceServer) DeleteTweet(context.Context, *DeleteTweetRequest) (*DeleteTweetResponse, error)
- func (UnimplementedCacheServiceServer) FindTweetById(context.Context, *FindTweetByIdRequest) (*FindTweetByIdResponse, error)
- func (UnimplementedCacheServiceServer) FindUserById(context.Context, *FindUserByIdRequest) (*FindUserByIdResponse, error)
- func (UnimplementedCacheServiceServer) SaveUser(context.Context, *SaveUserRequest) (*SaveUserResponse, error)
- func (UnimplementedCacheServiceServer) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeCacheServiceServer
- type UpdateTweetRequest
- func (*UpdateTweetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTweetRequest) GetContent() string
- func (x *UpdateTweetRequest) GetId() string
- func (*UpdateTweetRequest) ProtoMessage()
- func (x *UpdateTweetRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTweetRequest) Reset()
- func (x *UpdateTweetRequest) String() string
- type UpdateTweetResponse
- func (*UpdateTweetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTweetResponse) GetTweet() *Tweet
- func (*UpdateTweetResponse) ProtoMessage()
- func (x *UpdateTweetResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateTweetResponse) Reset()
- func (x *UpdateTweetResponse) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetDescription() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type VerifyRequest
- type VerifyResponse
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "twitter.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "Verify", Handler: _AuthService_Verify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "twitter.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CacheService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "twitter.CacheService", HandlerType: (*CacheServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTweet", Handler: _CacheService_CreateTweet_Handler, }, { MethodName: "DeleteTweet", Handler: _CacheService_DeleteTweet_Handler, }, { MethodName: "FindTweetById", Handler: _CacheService_FindTweetById_Handler, }, { MethodName: "FindUserById", Handler: _CacheService_FindUserById_Handler, }, { MethodName: "SaveUser", Handler: _CacheService_SaveUser_Handler, }, { MethodName: "UpdateTweet", Handler: _CacheService_UpdateTweet_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "twitter.proto", }
CacheService_ServiceDesc is the grpc.ServiceDesc for CacheService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_twitter_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterCacheServiceServer ¶
func RegisterCacheServiceServer(s grpc.ServiceRegistrar, srv CacheServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // Register registers a new user. Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // Login logs in a user and returns an auth token. Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { // Register registers a new user. Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // Login logs in a user and returns an auth token. Login(context.Context, *LoginRequest) (*LoginResponse, error) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CacheServiceClient ¶
type CacheServiceClient interface { CreateTweet(ctx context.Context, in *CreateTweetRequest, opts ...grpc.CallOption) (*CreateTweetResponse, error) DeleteTweet(ctx context.Context, in *DeleteTweetRequest, opts ...grpc.CallOption) (*DeleteTweetResponse, error) FindTweetById(ctx context.Context, in *FindTweetByIdRequest, opts ...grpc.CallOption) (*FindTweetByIdResponse, error) FindUserById(ctx context.Context, in *FindUserByIdRequest, opts ...grpc.CallOption) (*FindUserByIdResponse, error) SaveUser(ctx context.Context, in *SaveUserRequest, opts ...grpc.CallOption) (*SaveUserResponse, error) UpdateTweet(ctx context.Context, in *UpdateTweetRequest, opts ...grpc.CallOption) (*UpdateTweetResponse, error) }
CacheServiceClient is the client API for CacheService 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 NewCacheServiceClient ¶
func NewCacheServiceClient(cc grpc.ClientConnInterface) CacheServiceClient
type CacheServiceServer ¶
type CacheServiceServer interface { CreateTweet(context.Context, *CreateTweetRequest) (*CreateTweetResponse, error) DeleteTweet(context.Context, *DeleteTweetRequest) (*DeleteTweetResponse, error) FindTweetById(context.Context, *FindTweetByIdRequest) (*FindTweetByIdResponse, error) FindUserById(context.Context, *FindUserByIdRequest) (*FindUserByIdResponse, error) SaveUser(context.Context, *SaveUserRequest) (*SaveUserResponse, error) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error) // contains filtered or unexported methods }
CacheServiceServer is the server API for CacheService service. All implementations must embed UnimplementedCacheServiceServer for forward compatibility
type CreateTweetRequest ¶
type CreateTweetRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*CreateTweetRequest) Descriptor
deprecated
func (*CreateTweetRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTweetRequest.ProtoReflect.Descriptor instead.
func (*CreateTweetRequest) GetContent ¶
func (x *CreateTweetRequest) GetContent() string
func (*CreateTweetRequest) GetUsername ¶
func (x *CreateTweetRequest) GetUsername() string
func (*CreateTweetRequest) ProtoMessage ¶
func (*CreateTweetRequest) ProtoMessage()
func (*CreateTweetRequest) ProtoReflect ¶
func (x *CreateTweetRequest) ProtoReflect() protoreflect.Message
func (*CreateTweetRequest) Reset ¶
func (x *CreateTweetRequest) Reset()
func (*CreateTweetRequest) String ¶
func (x *CreateTweetRequest) String() string
type CreateTweetResponse ¶
type CreateTweetResponse struct { Tweet *Tweet `protobuf:"bytes,1,opt,name=tweet,proto3" json:"tweet,omitempty"` // contains filtered or unexported fields }
func (*CreateTweetResponse) Descriptor
deprecated
func (*CreateTweetResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTweetResponse.ProtoReflect.Descriptor instead.
func (*CreateTweetResponse) GetTweet ¶
func (x *CreateTweetResponse) GetTweet() *Tweet
func (*CreateTweetResponse) ProtoMessage ¶
func (*CreateTweetResponse) ProtoMessage()
func (*CreateTweetResponse) ProtoReflect ¶
func (x *CreateTweetResponse) ProtoReflect() protoreflect.Message
func (*CreateTweetResponse) Reset ¶
func (x *CreateTweetResponse) Reset()
func (*CreateTweetResponse) String ¶
func (x *CreateTweetResponse) String() string
type DeleteTweetRequest ¶
type DeleteTweetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTweetRequest) Descriptor
deprecated
func (*DeleteTweetRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTweetRequest.ProtoReflect.Descriptor instead.
func (*DeleteTweetRequest) GetId ¶
func (x *DeleteTweetRequest) GetId() string
func (*DeleteTweetRequest) ProtoMessage ¶
func (*DeleteTweetRequest) ProtoMessage()
func (*DeleteTweetRequest) ProtoReflect ¶
func (x *DeleteTweetRequest) ProtoReflect() protoreflect.Message
func (*DeleteTweetRequest) Reset ¶
func (x *DeleteTweetRequest) Reset()
func (*DeleteTweetRequest) String ¶
func (x *DeleteTweetRequest) String() string
type DeleteTweetResponse ¶
type DeleteTweetResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTweetResponse) Descriptor
deprecated
func (*DeleteTweetResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTweetResponse.ProtoReflect.Descriptor instead.
func (*DeleteTweetResponse) GetId ¶
func (x *DeleteTweetResponse) GetId() string
func (*DeleteTweetResponse) ProtoMessage ¶
func (*DeleteTweetResponse) ProtoMessage()
func (*DeleteTweetResponse) ProtoReflect ¶
func (x *DeleteTweetResponse) ProtoReflect() protoreflect.Message
func (*DeleteTweetResponse) Reset ¶
func (x *DeleteTweetResponse) Reset()
func (*DeleteTweetResponse) String ¶
func (x *DeleteTweetResponse) String() string
type FindTweetByIdRequest ¶
type FindTweetByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindTweetByIdRequest) Descriptor
deprecated
func (*FindTweetByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindTweetByIdRequest.ProtoReflect.Descriptor instead.
func (*FindTweetByIdRequest) GetId ¶
func (x *FindTweetByIdRequest) GetId() string
func (*FindTweetByIdRequest) ProtoMessage ¶
func (*FindTweetByIdRequest) ProtoMessage()
func (*FindTweetByIdRequest) ProtoReflect ¶
func (x *FindTweetByIdRequest) ProtoReflect() protoreflect.Message
func (*FindTweetByIdRequest) Reset ¶
func (x *FindTweetByIdRequest) Reset()
func (*FindTweetByIdRequest) String ¶
func (x *FindTweetByIdRequest) String() string
type FindTweetByIdResponse ¶
type FindTweetByIdResponse struct { Tweet *Tweet `protobuf:"bytes,1,opt,name=tweet,proto3" json:"tweet,omitempty"` // contains filtered or unexported fields }
func (*FindTweetByIdResponse) Descriptor
deprecated
func (*FindTweetByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindTweetByIdResponse.ProtoReflect.Descriptor instead.
func (*FindTweetByIdResponse) GetTweet ¶
func (x *FindTweetByIdResponse) GetTweet() *Tweet
func (*FindTweetByIdResponse) ProtoMessage ¶
func (*FindTweetByIdResponse) ProtoMessage()
func (*FindTweetByIdResponse) ProtoReflect ¶
func (x *FindTweetByIdResponse) ProtoReflect() protoreflect.Message
func (*FindTweetByIdResponse) Reset ¶
func (x *FindTweetByIdResponse) Reset()
func (*FindTweetByIdResponse) String ¶
func (x *FindTweetByIdResponse) String() string
type FindUserByIdRequest ¶
type FindUserByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FindUserByIdRequest) Descriptor
deprecated
func (*FindUserByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindUserByIdRequest.ProtoReflect.Descriptor instead.
func (*FindUserByIdRequest) GetId ¶
func (x *FindUserByIdRequest) GetId() string
func (*FindUserByIdRequest) ProtoMessage ¶
func (*FindUserByIdRequest) ProtoMessage()
func (*FindUserByIdRequest) ProtoReflect ¶
func (x *FindUserByIdRequest) ProtoReflect() protoreflect.Message
func (*FindUserByIdRequest) Reset ¶
func (x *FindUserByIdRequest) Reset()
func (*FindUserByIdRequest) String ¶
func (x *FindUserByIdRequest) String() string
type FindUserByIdResponse ¶
type FindUserByIdResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*FindUserByIdResponse) Descriptor
deprecated
func (*FindUserByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindUserByIdResponse.ProtoReflect.Descriptor instead.
func (*FindUserByIdResponse) GetUser ¶
func (x *FindUserByIdResponse) GetUser() *User
func (*FindUserByIdResponse) ProtoMessage ¶
func (*FindUserByIdResponse) ProtoMessage()
func (*FindUserByIdResponse) ProtoReflect ¶
func (x *FindUserByIdResponse) ProtoReflect() protoreflect.Message
func (*FindUserByIdResponse) Reset ¶
func (x *FindUserByIdResponse) Reset()
func (*FindUserByIdResponse) String ¶
func (x *FindUserByIdResponse) String() string
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (x *LoginRequest) GetUsername() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetToken ¶
func (x *RegisterResponse) GetToken() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type SaveUserRequest ¶
type SaveUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` PassHash []byte `protobuf:"bytes,2,opt,name=pass_hash,json=passHash,proto3" json:"pass_hash,omitempty"` // contains filtered or unexported fields }
func (*SaveUserRequest) Descriptor
deprecated
func (*SaveUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveUserRequest.ProtoReflect.Descriptor instead.
func (*SaveUserRequest) GetPassHash ¶
func (x *SaveUserRequest) GetPassHash() []byte
func (*SaveUserRequest) GetUsername ¶
func (x *SaveUserRequest) GetUsername() string
func (*SaveUserRequest) ProtoMessage ¶
func (*SaveUserRequest) ProtoMessage()
func (*SaveUserRequest) ProtoReflect ¶
func (x *SaveUserRequest) ProtoReflect() protoreflect.Message
func (*SaveUserRequest) Reset ¶
func (x *SaveUserRequest) Reset()
func (*SaveUserRequest) String ¶
func (x *SaveUserRequest) String() string
type SaveUserResponse ¶
type SaveUserResponse struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*SaveUserResponse) Descriptor
deprecated
func (*SaveUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use SaveUserResponse.ProtoReflect.Descriptor instead.
func (*SaveUserResponse) GetUserId ¶
func (x *SaveUserResponse) GetUserId() string
func (*SaveUserResponse) ProtoMessage ¶
func (*SaveUserResponse) ProtoMessage()
func (*SaveUserResponse) ProtoReflect ¶
func (x *SaveUserResponse) ProtoReflect() protoreflect.Message
func (*SaveUserResponse) Reset ¶
func (x *SaveUserResponse) Reset()
func (*SaveUserResponse) String ¶
func (x *SaveUserResponse) String() string
type Tweet ¶
type Tweet struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Tweet) Descriptor
deprecated
func (*Tweet) GetContent ¶
func (*Tweet) GetCreatedAt ¶
func (x *Tweet) GetCreatedAt() *timestamppb.Timestamp
func (*Tweet) GetUpdatedAt ¶
func (x *Tweet) GetUpdatedAt() *timestamppb.Timestamp
func (*Tweet) GetUsername ¶
func (*Tweet) ProtoMessage ¶
func (*Tweet) ProtoMessage()
func (*Tweet) ProtoReflect ¶
func (x *Tweet) ProtoReflect() protoreflect.Message
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) Verify ¶
func (UnimplementedAuthServiceServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
type UnimplementedCacheServiceServer ¶
type UnimplementedCacheServiceServer struct { }
UnimplementedCacheServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCacheServiceServer) CreateTweet ¶
func (UnimplementedCacheServiceServer) CreateTweet(context.Context, *CreateTweetRequest) (*CreateTweetResponse, error)
func (UnimplementedCacheServiceServer) DeleteTweet ¶
func (UnimplementedCacheServiceServer) DeleteTweet(context.Context, *DeleteTweetRequest) (*DeleteTweetResponse, error)
func (UnimplementedCacheServiceServer) FindTweetById ¶
func (UnimplementedCacheServiceServer) FindTweetById(context.Context, *FindTweetByIdRequest) (*FindTweetByIdResponse, error)
func (UnimplementedCacheServiceServer) FindUserById ¶
func (UnimplementedCacheServiceServer) FindUserById(context.Context, *FindUserByIdRequest) (*FindUserByIdResponse, error)
func (UnimplementedCacheServiceServer) SaveUser ¶
func (UnimplementedCacheServiceServer) SaveUser(context.Context, *SaveUserRequest) (*SaveUserResponse, error)
func (UnimplementedCacheServiceServer) UpdateTweet ¶
func (UnimplementedCacheServiceServer) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeCacheServiceServer ¶
type UnsafeCacheServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCacheServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CacheServiceServer will result in compilation errors.
type UpdateTweetRequest ¶
type UpdateTweetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*UpdateTweetRequest) Descriptor
deprecated
func (*UpdateTweetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTweetRequest.ProtoReflect.Descriptor instead.
func (*UpdateTweetRequest) GetContent ¶
func (x *UpdateTweetRequest) GetContent() string
func (*UpdateTweetRequest) GetId ¶
func (x *UpdateTweetRequest) GetId() string
func (*UpdateTweetRequest) ProtoMessage ¶
func (*UpdateTweetRequest) ProtoMessage()
func (*UpdateTweetRequest) ProtoReflect ¶
func (x *UpdateTweetRequest) ProtoReflect() protoreflect.Message
func (*UpdateTweetRequest) Reset ¶
func (x *UpdateTweetRequest) Reset()
func (*UpdateTweetRequest) String ¶
func (x *UpdateTweetRequest) String() string
type UpdateTweetResponse ¶
type UpdateTweetResponse struct { Tweet *Tweet `protobuf:"bytes,1,opt,name=tweet,proto3" json:"tweet,omitempty"` // contains filtered or unexported fields }
func (*UpdateTweetResponse) Descriptor
deprecated
func (*UpdateTweetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTweetResponse.ProtoReflect.Descriptor instead.
func (*UpdateTweetResponse) GetTweet ¶
func (x *UpdateTweetResponse) GetTweet() *Tweet
func (*UpdateTweetResponse) ProtoMessage ¶
func (*UpdateTweetResponse) ProtoMessage()
func (*UpdateTweetResponse) ProtoReflect ¶
func (x *UpdateTweetResponse) ProtoReflect() protoreflect.Message
func (*UpdateTweetResponse) Reset ¶
func (x *UpdateTweetResponse) Reset()
func (*UpdateTweetResponse) String ¶
func (x *UpdateTweetResponse) String() string
type User ¶
type User struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetDescription ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type VerifyRequest ¶
type VerifyRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*VerifyRequest) Descriptor
deprecated
func (*VerifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.
func (*VerifyRequest) GetToken ¶
func (x *VerifyRequest) GetToken() string
func (*VerifyRequest) ProtoMessage ¶
func (*VerifyRequest) ProtoMessage()
func (*VerifyRequest) ProtoReflect ¶
func (x *VerifyRequest) ProtoReflect() protoreflect.Message
func (*VerifyRequest) Reset ¶
func (x *VerifyRequest) Reset()
func (*VerifyRequest) String ¶
func (x *VerifyRequest) String() string
type VerifyResponse ¶
type VerifyResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*VerifyResponse) Descriptor
deprecated
func (*VerifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.
func (*VerifyResponse) GetUser ¶
func (x *VerifyResponse) GetUser() *User
func (*VerifyResponse) ProtoMessage ¶
func (*VerifyResponse) ProtoMessage()
func (*VerifyResponse) ProtoReflect ¶
func (x *VerifyResponse) ProtoReflect() protoreflect.Message
func (*VerifyResponse) Reset ¶
func (x *VerifyResponse) Reset()
func (*VerifyResponse) String ¶
func (x *VerifyResponse) String() string