server

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, handler func(ctx context.Context) (func(), error)) error

func Start

func Start(ctx context.Context, injector *inject.Injector, registryRoutes func(ctx context.Context, e *gin.Engine) error, parseCurrentUser func(c *gin.Context) (string, error)) (func(), error)

Types

type ServerParam

type ServerParam interface {
	Init(ctx context.Context) error
	GetInjector(ctx context.Context) *inject.Injector
	RegistryRoutes(ctx context.Context, e *gin.Engine) error
	ParseCurrentUser(c *gin.Context) (string, error)
}

Jump to

Keyboard shortcuts

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