Documentation ¶
Index ¶
- type Server
- func (s *Server) CheckTokenValidity(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.TokenStatus, error)
- func (s *Server) CreateToken(ctx context.Context, in *protobuf.UserRequest) (*protobuf.UserResponse, error)
- func (s *Server) DestroyToken(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.DestroyStatus, error)
- func (s *Server) GetJwt(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.TokenResponse, error)
- func (s *Server) UpdateToken(ctx context.Context, in *protobuf.UserUpdateRequest) (*protobuf.UserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
protobuf.UnimplementedTokenServer
}
func (*Server) CheckTokenValidity ¶
func (s *Server) CheckTokenValidity(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.TokenStatus, error)
CheckTokenValidity verify token validity params:
- TokenRequest - user token
result:
- TokenStatus - token status
**
func (*Server) CreateToken ¶
func (s *Server) CreateToken(ctx context.Context, in *protobuf.UserRequest) (*protobuf.UserResponse, error)
CreateToken Create user opaque token params:
- UserRequest - user data
result:
- UserResponse - opaque token created
**
func (*Server) DestroyToken ¶
func (s *Server) DestroyToken(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.DestroyStatus, error)
DestroyToken destroy token params:
- TokenRequest - user token
result:
- DestroyStatus - result of deletion
**
func (*Server) GetJwt ¶
func (s *Server) GetJwt(ctx context.Context, in *protobuf.TokenRequest) (*protobuf.TokenResponse, error)
GetJwt Returns JWT using Opaque Token params:
- TokenRequest - opaque token
result:
- TokenResponse - user jwt
**
func (*Server) UpdateToken ¶
func (s *Server) UpdateToken(ctx context.Context, in *protobuf.UserUpdateRequest) (*protobuf.UserResponse, error)
UpdateToken Update user jwt params:
- UserUpdateRequest - user opaque token and jwt
result:
- UserResponse - user opaque token
**
Click to show internal directories.
Click to hide internal directories.