service

package
v0.0.0-...-755d38d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

GetJwt Returns JWT using Opaque Token params:

  • TokenRequest - opaque token

result:

  • TokenResponse - user jwt

**

func (*Server) UpdateToken

UpdateToken Update user jwt params:

  • UserUpdateRequest - user opaque token and jwt

result:

  • UserResponse - user opaque token

**

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL