server

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OpenAPI         OpenAPI
	JWTPublicKey    crypto.PublicKey
	AuthorityClient pb.AuthorityClient
}

type OpenAPI

type OpenAPI struct {
	Spec      *openapi31.Spec
	Reflector *openapi31.Reflector
}

type Server

type Server struct {
	FiberApp *fiber.App
	Config   Config
}

func New

func New(configs ...Config) *Server

func (*Server) ServeOpenAPISpec

func (s *Server) ServeOpenAPISpec()

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) Start

func (s *Server) Start(port int) error

Jump to

Keyboard shortcuts

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