Documentation
¶
Index ¶
- type GrpcClient
- type GrpcServer
- func (s *GrpcServer) CreateSession(_ context.Context, in *authProto.User) (*authProto.Session, error)
- func (s *GrpcServer) DeleteSession(_ context.Context, in *authProto.Session) (*authProto.NoContent, error)
- func (s *GrpcServer) GetUserIDBySession(_ context.Context, in *authProto.Session) (*authProto.User, error)
- func (s *GrpcServer) Ping(_ context.Context, _ *authProto.NoContent) (*authProto.NoContent, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcClient ¶
type GrpcClient struct {
// contains filtered or unexported fields
}
func NewGrpcClient ¶
func NewGrpcClient(addr string) (*GrpcClient, error)
func (*GrpcClient) CreateSession ¶
func (c *GrpcClient) CreateSession(userID uuid.UUID) (string, error)
func (*GrpcClient) DeleteSession ¶
func (c *GrpcClient) DeleteSession(sessionID string) error
func (*GrpcClient) GetUserIDBySession ¶
func (c *GrpcClient) GetUserIDBySession(sessionID string) (string, error)
type GrpcServer ¶
type GrpcServer struct { authProto.UnimplementedAuthServiceServer AuthUC usecase.Auth }
func NewGrpcServer ¶
func NewGrpcServer(authUC usecase.Auth) *GrpcServer
func (*GrpcServer) CreateSession ¶
func (*GrpcServer) DeleteSession ¶
func (*GrpcServer) GetUserIDBySession ¶
Click to show internal directories.
Click to hide internal directories.