Documentation ¶
Overview ¶
Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from ConfigF.tars Package configf comment
Code generated by tars2go 1.2.3, DO NOT EDIT. This file was generated from ConfigF.tars Package configf comment
Index ¶
- type Config
- func (obj *Config) CheckConfig(appServerName string, filename string, host string, result *string, ...) (int32, error)
- func (obj *Config) CheckConfigByInfo(configInfo *ConfigInfo, result *string, opts ...map[string]string) (int32, error)
- func (obj *Config) CheckConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, result *string, ...) (ret int32, err error)
- func (obj *Config) CheckConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, result *string, ...) (ret int32, err error)
- func (obj *Config) CheckConfigOneWayWithContext(tarsCtx context.Context, appServerName string, filename string, host string, ...) (ret int32, err error)
- func (obj *Config) CheckConfigWithContext(tarsCtx context.Context, appServerName string, filename string, host string, ...) (ret int32, err error)
- func (obj *Config) Dispatch(tarsCtx context.Context, val interface{}, tarsReq *requestf.RequestPacket, ...) (err error)
- func (obj *Config) Endpoints() []*endpoint.Endpoint
- func (obj *Config) ListAllConfigByInfo(configInfo *GetConfigListInfo, vf *[]string, opts ...map[string]string) (int32, error)
- func (obj *Config) ListAllConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *GetConfigListInfo, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) ListAllConfigByInfoWithContext(tarsCtx context.Context, configInfo *GetConfigListInfo, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) ListConfig(app string, server string, vf *[]string, opts ...map[string]string) (int32, error)
- func (obj *Config) ListConfigByInfo(configInfo *ConfigInfo, vf *[]string, opts ...map[string]string) (int32, error)
- func (obj *Config) ListConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) ListConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) ListConfigOneWayWithContext(tarsCtx context.Context, app string, server string, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) ListConfigWithContext(tarsCtx context.Context, app string, server string, vf *[]string, ...) (ret int32, err error)
- func (obj *Config) LoadConfig(app string, server string, filename string, config *string, ...) (int32, error)
- func (obj *Config) LoadConfigByHost(appServerName string, filename string, host string, config *string, ...) (int32, error)
- func (obj *Config) LoadConfigByHostOneWayWithContext(tarsCtx context.Context, appServerName string, filename string, host string, ...) (ret int32, err error)
- func (obj *Config) LoadConfigByHostWithContext(tarsCtx context.Context, appServerName string, filename string, host string, ...) (ret int32, err error)
- func (obj *Config) LoadConfigByInfo(configInfo *ConfigInfo, config *string, opts ...map[string]string) (int32, error)
- func (obj *Config) LoadConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, config *string, ...) (ret int32, err error)
- func (obj *Config) LoadConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, config *string, ...) (ret int32, err error)
- func (obj *Config) LoadConfigOneWayWithContext(tarsCtx context.Context, app string, server string, filename string, ...) (ret int32, err error)
- func (obj *Config) LoadConfigWithContext(tarsCtx context.Context, app string, server string, filename string, ...) (ret int32, err error)
- func (obj *Config) SetServant(servant model.Servant)
- func (obj *Config) TarsSetProtocol(p model.Protocol)
- func (obj *Config) TarsSetTimeout(timeout int)
- type ConfigInfo
- func (st *ConfigInfo) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *ConfigInfo) ReadFrom(readBuf *codec.Reader) error
- func (st *ConfigInfo) ResetDefault()
- func (st *ConfigInfo) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *ConfigInfo) WriteTo(buf *codec.Buffer) (err error)
- type ConfigServant
- type ConfigServantWithContext
- type GetConfigListInfo
- func (st *GetConfigListInfo) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *GetConfigListInfo) ReadFrom(readBuf *codec.Reader) error
- func (st *GetConfigListInfo) ResetDefault()
- func (st *GetConfigListInfo) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *GetConfigListInfo) WriteTo(buf *codec.Buffer) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config struct
func (*Config) CheckConfig ¶
func (obj *Config) CheckConfig(appServerName string, filename string, host string, result *string, opts ...map[string]string) (int32, error)
CheckConfig is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigByInfo ¶
func (obj *Config) CheckConfigByInfo(configInfo *ConfigInfo, result *string, opts ...map[string]string) (int32, error)
CheckConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigByInfoOneWayWithContext ¶ added in v1.2.0
func (obj *Config) CheckConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, result *string, opts ...map[string]string) (ret int32, err error)
CheckConfigByInfoOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigByInfoWithContext ¶
func (obj *Config) CheckConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, result *string, opts ...map[string]string) (ret int32, err error)
CheckConfigByInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigOneWayWithContext ¶ added in v1.2.0
func (obj *Config) CheckConfigOneWayWithContext(tarsCtx context.Context, appServerName string, filename string, host string, result *string, opts ...map[string]string) (ret int32, err error)
CheckConfigOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigWithContext ¶
func (obj *Config) CheckConfigWithContext(tarsCtx context.Context, appServerName string, filename string, host string, result *string, opts ...map[string]string) (ret int32, err error)
CheckConfigWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) Dispatch ¶
func (obj *Config) 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 (*Config) ListAllConfigByInfo ¶
func (obj *Config) ListAllConfigByInfo(configInfo *GetConfigListInfo, vf *[]string, opts ...map[string]string) (int32, error)
ListAllConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) ListAllConfigByInfoOneWayWithContext ¶ added in v1.2.0
func (obj *Config) ListAllConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *GetConfigListInfo, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListAllConfigByInfoOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) ListAllConfigByInfoWithContext ¶
func (obj *Config) ListAllConfigByInfoWithContext(tarsCtx context.Context, configInfo *GetConfigListInfo, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListAllConfigByInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfig ¶
func (obj *Config) ListConfig(app string, server string, vf *[]string, opts ...map[string]string) (int32, error)
ListConfig is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigByInfo ¶
func (obj *Config) ListConfigByInfo(configInfo *ConfigInfo, vf *[]string, opts ...map[string]string) (int32, error)
ListConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigByInfoOneWayWithContext ¶ added in v1.2.0
func (obj *Config) ListConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListConfigByInfoOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigByInfoWithContext ¶
func (obj *Config) ListConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListConfigByInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigOneWayWithContext ¶ added in v1.2.0
func (obj *Config) ListConfigOneWayWithContext(tarsCtx context.Context, app string, server string, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListConfigOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigWithContext ¶
func (obj *Config) ListConfigWithContext(tarsCtx context.Context, app string, server string, vf *[]string, opts ...map[string]string) (ret int32, err error)
ListConfigWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfig ¶
func (obj *Config) LoadConfig(app string, server string, filename string, config *string, opts ...map[string]string) (int32, error)
LoadConfig is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByHost ¶
func (obj *Config) LoadConfigByHost(appServerName string, filename string, host string, config *string, opts ...map[string]string) (int32, error)
LoadConfigByHost is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByHostOneWayWithContext ¶ added in v1.2.0
func (obj *Config) LoadConfigByHostOneWayWithContext(tarsCtx context.Context, appServerName string, filename string, host string, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigByHostOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByHostWithContext ¶
func (obj *Config) LoadConfigByHostWithContext(tarsCtx context.Context, appServerName string, filename string, host string, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigByHostWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByInfo ¶
func (obj *Config) LoadConfigByInfo(configInfo *ConfigInfo, config *string, opts ...map[string]string) (int32, error)
LoadConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByInfoOneWayWithContext ¶ added in v1.2.0
func (obj *Config) LoadConfigByInfoOneWayWithContext(tarsCtx context.Context, configInfo *ConfigInfo, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigByInfoOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByInfoWithContext ¶
func (obj *Config) LoadConfigByInfoWithContext(tarsCtx context.Context, configInfo *ConfigInfo, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigByInfoWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigOneWayWithContext ¶ added in v1.2.0
func (obj *Config) LoadConfigOneWayWithContext(tarsCtx context.Context, app string, server string, filename string, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigOneWayWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigWithContext ¶
func (obj *Config) LoadConfigWithContext(tarsCtx context.Context, app string, server string, filename string, config *string, opts ...map[string]string) (ret int32, err error)
LoadConfigWithContext is the proxy function for the method defined in the tars file, with the context
func (*Config) SetServant ¶
SetServant sets servant for the service.
func (*Config) TarsSetProtocol ¶ added in v1.2.0
TarsSetProtocol sets the protocol for the servant.
func (*Config) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type ConfigInfo ¶
type ConfigInfo struct { Appname string `json:"appname" tars:"appname,tag:0,require:true"` Servername string `json:"servername" tars:"servername,tag:1,require:true"` Filename string `json:"filename" tars:"filename,tag:2,require:true"` BAppOnly bool `json:"bAppOnly" tars:"bAppOnly,tag:3,require:true"` Host string `json:"host" tars:"host,tag:4,require:false"` Setdivision string `json:"setdivision" tars:"setdivision,tag:5,require:false"` }
ConfigInfo struct implement
func (*ConfigInfo) ReadFrom ¶
func (st *ConfigInfo) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*ConfigInfo) ResetDefault ¶ added in v1.2.0
func (st *ConfigInfo) ResetDefault()
func (*ConfigInfo) WriteBlock ¶
func (st *ConfigInfo) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type ConfigServant ¶ added in v1.3.0
type ConfigServant interface { ListConfig(app string, server string, vf *[]string) (ret int32, err error) LoadConfig(app string, server string, filename string, config *string) (ret int32, err error) LoadConfigByHost(appServerName string, filename string, host string, config *string) (ret int32, err error) CheckConfig(appServerName string, filename string, host string, result *string) (ret int32, err error) ListConfigByInfo(configInfo *ConfigInfo, vf *[]string) (ret int32, err error) LoadConfigByInfo(configInfo *ConfigInfo, config *string) (ret int32, err error) CheckConfigByInfo(configInfo *ConfigInfo, result *string) (ret int32, err error) ListAllConfigByInfo(configInfo *GetConfigListInfo, vf *[]string) (ret int32, err error) }
type ConfigServantWithContext ¶ added in v1.3.0
type ConfigServantWithContext interface { ListConfig(tarsCtx context.Context, app string, server string, vf *[]string) (ret int32, err error) LoadConfig(tarsCtx context.Context, app string, server string, filename string, config *string) (ret int32, err error) LoadConfigByHost(tarsCtx context.Context, appServerName string, filename string, host string, config *string) (ret int32, err error) CheckConfig(tarsCtx context.Context, appServerName string, filename string, host string, result *string) (ret int32, err error) ListConfigByInfo(tarsCtx context.Context, configInfo *ConfigInfo, vf *[]string) (ret int32, err error) LoadConfigByInfo(tarsCtx context.Context, configInfo *ConfigInfo, config *string) (ret int32, err error) CheckConfigByInfo(tarsCtx context.Context, configInfo *ConfigInfo, result *string) (ret int32, err error) ListAllConfigByInfo(tarsCtx context.Context, configInfo *GetConfigListInfo, vf *[]string) (ret int32, err error) }
type GetConfigListInfo ¶
type GetConfigListInfo struct { Appname string `json:"appname" tars:"appname,tag:0,require:true"` Servername string `json:"servername" tars:"servername,tag:1,require:false"` BAppOnly bool `json:"bAppOnly" tars:"bAppOnly,tag:2,require:false"` Host string `json:"host" tars:"host,tag:3,require:false"` Setdivision string `json:"setdivision" tars:"setdivision,tag:4,require:false"` Containername string `json:"containername" tars:"containername,tag:5,require:false"` }
GetConfigListInfo struct implement
func (*GetConfigListInfo) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*GetConfigListInfo) ReadFrom ¶
func (st *GetConfigListInfo) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*GetConfigListInfo) ResetDefault ¶ added in v1.2.0
func (st *GetConfigListInfo) ResetDefault()
func (*GetConfigListInfo) WriteBlock ¶
func (st *GetConfigListInfo) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct