api

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfHttpServerAddr = config.Key("server", "listen")
)
View Source
var (
	ModuleName = dep.Name("wk", "api")
)

Functions

func MakeJSONHandler added in v0.1.1

func MakeJSONHandler[Rq any, Rs any](handler func(ctx context.Context, request *Rq) (*Rs, error)) gin.HandlerFunc

func Module

func Module() dep.Module

Types

type Server

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

func (*Server) Group

func (s *Server) Group(name string) *gin.RouterGroup

Jump to

Keyboard shortcuts

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