Documentation
¶
Overview ¶
Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from AdminF.tars Package adminf comment
Index ¶
- type AdminF
- func (obj *AdminF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, ...) (err error)
- func (obj *AdminF) Endpoints() []*endpoint.Endpoint
- func (obj *AdminF) Notify(command string, opts ...map[string]string) (string, error)
- func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
- func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
- func (obj *AdminF) SetServant(servant model.Servant)
- func (obj *AdminF) Shutdown(opts ...map[string]string) error
- func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...map[string]string) (err error)
- func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[string]string) (err error)
- func (obj *AdminF) TarsSetProtocol(p model.Protocol)
- func (obj *AdminF) TarsSetTimeout(timeout int)
- 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) Dispatch ¶
func (obj *AdminF) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, tarsResp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implement for the method defined in the tars file. withContext shows using context or not.
func (*AdminF) Notify ¶
Notify is the proxy function for the method defined in the tars file, with the context
func (*AdminF) NotifyOneWayWithContext ¶ added in v1.2.0
func (obj *AdminF) NotifyOneWayWithContext(tarsCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
NotifyOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*AdminF) NotifyWithContext ¶
func (obj *AdminF) NotifyWithContext(tarsCtx context.Context, command string, opts ...map[string]string) (ret string, err error)
NotifyWithContext is the proxy function for the method defined in the tars file, with the context
func (*AdminF) SetServant ¶
SetServant sets servant for the service.
func (*AdminF) Shutdown ¶
Shutdown is the proxy function for the method defined in the tars file, with the context
func (*AdminF) ShutdownOneWayWithContext ¶ added in v1.2.0
func (obj *AdminF) ShutdownOneWayWithContext(tarsCtx context.Context, opts ...map[string]string) (err error)
ShutdownOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*AdminF) ShutdownWithContext ¶
func (obj *AdminF) ShutdownWithContext(tarsCtx context.Context, opts ...map[string]string) (err error)
ShutdownWithContext is the proxy function for the method defined in the tars file, with the context
func (*AdminF) TarsSetProtocol ¶ added in v1.2.0
TarsSetProtocol sets the protocol for the servant.
func (*AdminF) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.