Documentation
¶
Index ¶
- Constants
- func AttachToCmdrCommand(tcp cmdr.OptCmd, opts ...CmdrOpt)
- func DefaultCmdrCommandAction(cmd *cmdr.Command, args []string, mainLoop MainLoop, prefixPrefix string, ...) (err error)
- func DefaultCommandAction(config *base.Config, mainLoop MainLoop, opts ...Opt) (err error)
- func New(udpMode bool, config *base.Config, opts ...Opt) error
- type BuildPackageFunc
- type CmdrOpt
- func WithCmdrClientBuildPackageFunc(fn BuildPackageFunc) CmdrOpt
- func WithCmdrClientOptions(opts ...Opt) CmdrOpt
- func WithCmdrClientProtocolInterceptor(pic protocol.ClientInterceptor) CmdrOpt
- func WithCmdrCommandAction(action CommandAction) CmdrOpt
- func WithCmdrInteractiveCommand(enabled bool) CmdrOpt
- func WithCmdrMainLoop(mainLoop MainLoop) CmdrOpt
- func WithCmdrNil() CmdrOpt
- func WithCmdrPort(port int) CmdrOpt
- func WithCmdrPrefixPrefix(prefixPrefix string) CmdrOpt
- func WithCmdrUDPMode(mode bool) CmdrOpt
- type CommandAction
- type MainLoop
- type MainLoopHolder
- type Opt
Constants ¶
View Source
const (
DefaultPort = 8883
)
Variables ¶
This section is empty.
Functions ¶
func AttachToCmdrCommand ¶ added in v0.3.0
func DefaultCmdrCommandAction ¶ added in v0.2.5
func DefaultCommandAction ¶ added in v0.2.5
Types ¶
type BuildPackageFunc ¶ added in v0.3.0
type CmdrOpt ¶
type CmdrOpt func(*builder)
func WithCmdrClientBuildPackageFunc ¶ added in v0.3.0
func WithCmdrClientBuildPackageFunc(fn BuildPackageFunc) CmdrOpt
func WithCmdrClientOptions ¶
func WithCmdrClientProtocolInterceptor ¶
func WithCmdrClientProtocolInterceptor(pic protocol.ClientInterceptor) CmdrOpt
func WithCmdrCommandAction ¶
func WithCmdrCommandAction(action CommandAction) CmdrOpt
func WithCmdrMainLoop ¶
func WithCmdrNil ¶
func WithCmdrNil() CmdrOpt
func WithCmdrPort ¶
func WithCmdrPrefixPrefix ¶
func WithCmdrUDPMode ¶
type CommandAction ¶
type MainLoopHolder ¶
type Opt ¶
type Opt func(obj *clientObj)
func WithClientBuildPackageFunc ¶ added in v0.3.0
func WithClientBuildPackageFunc(fn BuildPackageFunc) Opt
func WithClientMainLoop ¶
func WithClientPrefixPrefix ¶
func WithClientProtocolInterceptor ¶
func WithClientProtocolInterceptor(pic protocol.ClientInterceptor) Opt
func WithClientUDPMode ¶
Click to show internal directories.
Click to hide internal directories.