ginsvc

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiPort added in v1.0.0

func NewApiPort(options ...Option) contract.IApiPort

Types

type ApiSession added in v1.2.0

type ApiSession struct {
	Crypto   contract.ICrypto `inject:"auth-crypto"`
	UserAuth message.UserAuth
}

func (*ApiSession) SetSession added in v1.2.0

func (m *ApiSession) SetSession(ctx *gin.Context) error

type Option

type Option func(app *gin.Engine)

选项

func NewPortOption added in v1.0.0

func NewPortOption(name string, port int) Option

端口

func NewPostOption

func NewPostOption(
	authCrypto contract.ICrypto,
	logFactory contract.ILogFactory,
	routeRule string,
	getApiFunc func(ctx *gin.Context) (contract.IApi, error),
	getUserAuthFunc func(string) (any, error),
) Option

Jump to

Keyboard shortcuts

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