Documentation ¶
Overview ¶
Code generated by ksf2go 1.3.28, DO NOT EDIT. This file was generated from AdminF.ksf Package admin comment
Index ¶
- type AdminF
- func (obj *AdminF) AddServant(imp AdminFServant, servant string)
- func (obj *AdminF) AddServantWithContext(imp AdminFServantWithContext, servant string)
- func (obj *AdminF) AllEndpoints() (active []*endpoint.Endpoint, inactive []*endpoint.Endpoint)
- func (obj *AdminF) Dispatch(ksfCtx context.Context, val interface{}, ksfReq *requestf.RequestPacket, ...) (err error)
- func (obj *AdminF) Endpoints() (active []*endpoint.Endpoint)
- func (obj *AdminF) GetServant() (servant *model.Servant)
- func (obj *AdminF) KsfPing() error
- func (obj *AdminF) KsfPingWithContext(ksfCtx context.Context) error
- func (obj *AdminF) KsfSetProtocol(p model.Protocol)
- func (obj *AdminF) KsfSetTimeout(timeout int)
- func (obj *AdminF) KsfSetVersion(version int16)
- func (obj *AdminF) Notify(command string, opts ...map[string]string) (string, error)
- func (obj *AdminF) NotifyOneWayWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
- func (obj *AdminF) NotifyWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
- func (obj *AdminF) SetOnCloseCallback(callback func(string))
- func (obj *AdminF) SetOnConnectCallback(callback func(string))
- func (obj *AdminF) SetPushCallback(callback func([]byte))
- func (obj *AdminF) SetServant(servant model.Servant)
- func (obj *AdminF) Shutdown(opts ...map[string]string) error
- func (obj *AdminF) ShutdownOneWayWithContext(ksfCtx context.Context, opts ...map[string]string) (err error)
- func (obj *AdminF) ShutdownWithContext(ksfCtx context.Context, opts ...map[string]string) (err error)
- type AdminFServant
- type AdminFServantWithContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminF ¶
type AdminF struct {
// contains filtered or unexported fields
}
AdminF struct
func (*AdminF) AddServant ¶
func (obj *AdminF) AddServant(imp AdminFServant, servant string)
AddServant adds servant for the service.
func (*AdminF) AddServantWithContext ¶
func (obj *AdminF) AddServantWithContext(imp AdminFServantWithContext, servant string)
AddServantWithContext adds servant for the service with context.
func (*AdminF) AllEndpoints ¶
Endpoints returns all endpoint.Endpoint
func (*AdminF) Dispatch ¶
func (obj *AdminF) Dispatch(ksfCtx context.Context, val interface{}, ksfReq *requestf.RequestPacket, ksfResp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implement for the method defined in the ksf file. withContext shows using context or not.
func (*AdminF) Endpoints ¶
Endpoints returns all active endpoint.Endpoint
func (*AdminF) GetServant ¶
GetServant gets servant for the service.
func (*AdminF) KsfPingWithContext ¶
KsfPingWithContext
func (*AdminF) KsfSetProtocol ¶
KsfSetProtocol sets the protocol for the servant.
func (*AdminF) KsfSetTimeout ¶
KsfSetTimeout sets the timeout for the servant which is in ms.
func (*AdminF) KsfSetVersion ¶
KsfSetVersion default as KSFVERSION,you can set JSONVERSION.
func (*AdminF) Notify ¶
Notify is the proxy function for the method defined in the ksf file, with the context
func (*AdminF) NotifyOneWayWithContext ¶
func (obj *AdminF) NotifyOneWayWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
NotifyOneWayWithContext is the proxy function for the method defined in the ksf file, with the context
func (*AdminF) NotifyWithContext ¶
func (obj *AdminF) NotifyWithContext(ksfCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
NotifyWithContext is the proxy function for the method defined in the ksf file, with the context
func (*AdminF) SetOnCloseCallback ¶
SetOnCloseCallback
func (*AdminF) SetOnConnectCallback ¶
SetOnConnectCallback
func (*AdminF) SetPushCallback ¶
SetPushCallback
func (*AdminF) SetServant ¶
SetServant sets servant for the service.
func (*AdminF) Shutdown ¶
Shutdown is the proxy function for the method defined in the ksf file, with the context