service

package
v0.0.0-...-a7b145a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: BSD-2-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Authorization = "Authorization"
	RequestIdKey  = "X-Request-Id"
)

Variables

View Source
var ProviderSet = wire.NewSet(NewServer)

Functions

func Serve

func Serve(ctx context.Context, bc *conf.Bootstrap)

Serve start openapi server.

Types

type Server

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

Server is a openapi server.

func InitService

func InitService(ctx context.Context, secretKey string) (*Server, error)

func NewServer

func NewServer(iamClient v1.IamServiceClient, tokenMaker token.Maker) *Server

NewServer creates a new Server for openapi.

Jump to

Keyboard shortcuts

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