server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWT

func JWT(
	JWTKey string,
	tokenStorage token_storage.TokenStorage,
	logger echo.Logger,
) func(next echo.HandlerFunc) echo.HandlerFunc

Types

type ResponseToken

type ResponseToken struct {
	Token string `json:"token"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server for user-service.

func NewServer

func NewServer() *Server

Create user-service server.

func (*Server) CloseConnectons

func (s *Server) CloseConnectons()

Close all database connections.

func (*Server) Run

func (s *Server) Run()

Run user-service server.

Jump to

Keyboard shortcuts

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