server

package
v0.0.0-...-590db37 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENTER = FenceType("enter") //进站事件
	EXIT  = FenceType("exit")  //出站事件
)

Variables

This section is empty.

Functions

func Run

func Run(server *Server) error

Types

type FenceType

type FenceType string

type RedisPubpoint

type RedisPubpoint struct {
	Host    string
	Port    string
	Channel string
}

Redis发布点结构

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(c *config.Conf) (*Server, error)

新建服务

func (*Server) Close

func (s *Server) Close() error

func (*Server) Run

func (s *Server) Run() error

启动围栏处理服务

Jump to

Keyboard shortcuts

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