http

package
v0.0.0-...-50b78f6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewServer)

ProviderSet is server providers.

Functions

This section is empty.

Types

type Server

type Server struct {
	BzContact *biz.ContactUseCase
	BzMessage *biz.MessageUseCase
	// contains filtered or unexported fields
}

Server is http server.

func NewServer

func NewServer(conf *conf.Config, bz *biz.Biz, bzContact *biz.ContactUseCase, bzMessage *biz.MessageUseCase) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) ContactFetch

func (s *Server) ContactFetch(ctx *gin.Context)

func (*Server) MessageFetch

func (s *Server) MessageFetch(ctx *gin.Context)

func (*Server) MessageSend

func (s *Server) MessageSend(ctx *gin.Context)

func (*Server) SetupRouter

func (s *Server) SetupRouter()

SetupRouter 设置-路由

Jump to

Keyboard shortcuts

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