web

package
v0.0.0-...-2aeac8e Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module("web",
	internal.Module,
	fx.Provide(provideRouter),
	fx.Provide(provideListener, providePort),
	fx.Provide(provideWebHandler),
	fx.Invoke(invokeRoutes),
	fx.Invoke(invokeHttpServer),
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Logger *zap.Logger
	R      *gin.Engine
	// contains filtered or unexported fields
}

func (*Handler) Hello

func (h *Handler) Hello(c *gin.Context)

func (*Handler) Ping

func (h *Handler) Ping(c *gin.Context)

type IRoutes

type IRoutes interface {
	Hello(c *gin.Context)
	Ping(c *gin.Context)
}

type Port

type Port string

Jump to

Keyboard shortcuts

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