server

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewHttpServer)

ProviderSet is server providers.

View Source
var WsProviderSet = wire.NewSet(NewWebsocketServer)

Functions

This section is empty.

Types

type Server

type Server struct {
	*iris.Application
	// contains filtered or unexported fields
}

func NewHttpServer

func NewHttpServer() *Server

NewHttpServer 示例化Http服务

func (*Server) CrontabSwitchOn

func (hs *Server) CrontabSwitchOn() bool

func (*Server) Start

func (hs *Server) Start() error

func (*Server) StartCrontab

func (hs *Server) StartCrontab()

func (*Server) StopCrontab

func (hs *Server) StopCrontab()

type Websocket

type Websocket struct {
	*iris.Application
	// contains filtered or unexported fields
}

func NewWebsocketServer

func NewWebsocketServer() *Websocket

func (*Websocket) Start

func (ws *Websocket) Start() (err error)

func (*Websocket) StartWithSocketIO

func (ws *Websocket) StartWithSocketIO() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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