Documentation
¶
Index ¶
- type EventCallbackFunc
- type Logger
- type LoginInfo
- type MultiPartParser
- type OptVurixEventReceiver
- type OptVurixWebApiClient
- type VurixEventReceiver
- type VurixWebApiClient
- func (vc *VurixWebApiClient) GetDebug() bool
- func (vc *VurixWebApiClient) GetToken() (token string, apiserial int)
- func (vc *VurixWebApiClient) KeepAlive() bool
- func (vc *VurixWebApiClient) Login()
- func (vc *VurixWebApiClient) Logout()
- func (vc *VurixWebApiClient) SetDebug(debug bool)
- func (vc *VurixWebApiClient) SetEventHandler(callback EventCallbackFunc, opt OptVurixEventReceiver)
- func (vc *VurixWebApiClient) SetLogger(logger Logger)
- func (vc *VurixWebApiClient) SleepWithContext(d time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventCallbackFunc ¶
type EventCallbackFunc func(interface{})
type MultiPartParser ¶
type MultiPartParser struct {
// contains filtered or unexported fields
}
func NewMultiPartParser ¶
func NewMultiPartParser() *MultiPartParser
type OptVurixEventReceiver ¶
type OptVurixWebApiClient ¶
type OptVurixWebApiClient struct { Host string Port int User string Pass string Group string License string }
func NewOptVurixWebApiClient ¶
func NewOptVurixWebApiClient() OptVurixWebApiClient
type VurixEventReceiver ¶
type VurixEventReceiver struct {
// contains filtered or unexported fields
}
func NewVurixEventReceiver ¶
func NewVurixEventReceiver(option OptVurixEventReceiver) *VurixEventReceiver
func (*VurixEventReceiver) Run ¶
func (ver *VurixEventReceiver) Run(logger Logger)
func (*VurixEventReceiver) SendMessage ¶
func (ver *VurixEventReceiver) SendMessage(msg []byte)
func (*VurixEventReceiver) SetVurixWebApiClient ¶
func (ver *VurixEventReceiver) SetVurixWebApiClient(vc *VurixWebApiClient)
func (*VurixEventReceiver) Stop ¶
func (ver *VurixEventReceiver) Stop()
type VurixWebApiClient ¶
type VurixWebApiClient struct {
// contains filtered or unexported fields
}
func NewVurixWebApiClient ¶
func NewVurixWebApiClient(opt OptVurixWebApiClient) *VurixWebApiClient
func (*VurixWebApiClient) GetDebug ¶
func (vc *VurixWebApiClient) GetDebug() bool
func (*VurixWebApiClient) GetToken ¶
func (vc *VurixWebApiClient) GetToken() (token string, apiserial int)
func (*VurixWebApiClient) KeepAlive ¶
func (vc *VurixWebApiClient) KeepAlive() bool
http://host:port/api/keep-alive keep Alive에 실패할 경우, 로그인이 튕긴것이므로 다시 로그인이 되도록 처리한다
func (*VurixWebApiClient) Login ¶
func (vc *VurixWebApiClient) Login()
func (*VurixWebApiClient) Logout ¶
func (vc *VurixWebApiClient) Logout()
func (*VurixWebApiClient) SetDebug ¶
func (vc *VurixWebApiClient) SetDebug(debug bool)
func (*VurixWebApiClient) SetEventHandler ¶
func (vc *VurixWebApiClient) SetEventHandler(callback EventCallbackFunc, opt OptVurixEventReceiver)
func (*VurixWebApiClient) SetLogger ¶
func (vc *VurixWebApiClient) SetLogger(logger Logger)
func (*VurixWebApiClient) SleepWithContext ¶
func (vc *VurixWebApiClient) SleepWithContext(d time.Duration)
Click to show internal directories.
Click to hide internal directories.