c3_brokerStatus

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Xbootargs = NewBootArgs()
)

Functions

func BootMain

func BootMain()

Types

type BootArgs

type BootArgs struct {
	MqttHostAddr string
	MqttHostPort int
}

func NewBootArgs

func NewBootArgs() *BootArgs

func (*BootArgs) ExecFunc

func (bx *BootArgs) ExecFunc() func()

func (*BootArgs) FlagDefine

func (bx *BootArgs) FlagDefine() func(xflag *flag.FlagSet)

type ServiceHandler

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

func NewServiceHandler

func NewServiceHandler() *ServiceHandler

func (*ServiceHandler) MsgHandler

func (s *ServiceHandler) MsgHandler(cli mqtt.Client, msg mqtt.Message)

func (*ServiceHandler) Start

func (s *ServiceHandler) Start() error

start for wait

type Status

type Status byte
const (
	// 共计8个状态位
	Status_0 Status = 1 << (iota)
	Status_1
	Status_2
	Status_3
	Status_4
	Status_5
	Status_6
	Status_7
)

func (*Status) Disable

func (s *Status) Disable(target Status)

func (*Status) Enable

func (s *Status) Enable(target Status)

func (Status) Equal

func (s Status) Equal(other Status) bool

func (Status) Get

func (s Status) Get(target Status) bool

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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