Documentation ¶
Overview ¶
Package configf comment This file war generated by tars2go 1.1 Generated from Config.tars
Package configf comment This file war generated by tars2go 1.1 Generated from Config.tars
Package configf comment This file war generated by tars2go 1.1 Generated from Config.tars
Index ¶
- func ListAllConfigByInfo(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, ...) (err error)
- func ListConfig(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, ...) (err error)
- func ListConfigByInfo(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, ...) (err error)
- type Config
- func (_obj *Config) CheckConfig(AppServerName string, Filename string, Host string, Result *string, ...) (ret int32, err error)
- func (_obj *Config) CheckConfigByInfo(ConfigInfo *ConfigInfo, Result *string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Config) CheckConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Result *string, ...) (ret int32, err error)
- func (_obj *Config) CheckConfigWithContext(ctx context.Context, AppServerName string, Filename string, Host string, ...) (ret int32, err error)
- func (_obj *Config) Dispatch(ctx context.Context, _val interface{}, req *requestf.RequestPacket, ...) (err error)
- func (_obj *Config) ListAllConfigByInfo(ConfigInfo *GetConfigListInfo, Vf *[]string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Config) ListAllConfigByInfoWithContext(ctx context.Context, ConfigInfo *GetConfigListInfo, Vf *[]string, ...) (ret int32, err error)
- func (_obj *Config) ListConfig(App string, Server string, Vf *[]string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Config) ListConfigByInfo(ConfigInfo *ConfigInfo, Vf *[]string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Config) ListConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Vf *[]string, ...) (ret int32, err error)
- func (_obj *Config) ListConfigWithContext(ctx context.Context, App string, Server string, Vf *[]string, ...) (ret int32, err error)
- func (_obj *Config) LoadConfig(App string, Server string, Filename string, Config *string, ...) (ret int32, err error)
- func (_obj *Config) LoadConfigByHost(AppServerName string, Filename string, Host string, Config *string, ...) (ret int32, err error)
- func (_obj *Config) LoadConfigByHostWithContext(ctx context.Context, AppServerName string, Filename string, Host string, ...) (ret int32, err error)
- func (_obj *Config) LoadConfigByInfo(ConfigInfo *ConfigInfo, Config *string, _opt ...map[string]string) (ret int32, err error)
- func (_obj *Config) LoadConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Config *string, ...) (ret int32, err error)
- func (_obj *Config) LoadConfigWithContext(ctx context.Context, App string, Server string, Filename string, ...) (ret int32, err error)
- func (_obj *Config) SetServant(s m.Servant)
- func (_obj *Config) TarsSetTimeout(t int)
- type ConfigInfo
- type GetConfigListInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListAllConfigByInfo ¶
func ListAllConfigByInfo(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, withContext bool) (err error)
ListAllConfigByInfo body function
func ListConfig ¶
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, _opt ...map[string]string) (ret int32, err 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, _opt ...map[string]string) (ret int32, err error)
CheckConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) CheckConfigByInfoWithContext ¶
func (_obj *Config) CheckConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Result *string, _opt ...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) CheckConfigWithContext ¶
func (_obj *Config) CheckConfigWithContext(ctx context.Context, AppServerName string, Filename string, Host string, Result *string, _opt ...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(ctx context.Context, _val interface{}, req *requestf.RequestPacket, resp *requestf.ResponsePacket, withContext bool) (err error)
Dispatch is used to call the server side implemnet 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, _opt ...map[string]string) (ret int32, err error)
ListAllConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) ListAllConfigByInfoWithContext ¶
func (_obj *Config) ListAllConfigByInfoWithContext(ctx context.Context, ConfigInfo *GetConfigListInfo, Vf *[]string, _opt ...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, _opt ...map[string]string) (ret int32, err 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, _opt ...map[string]string) (ret int32, err error)
ListConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) ListConfigByInfoWithContext ¶
func (_obj *Config) ListConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Vf *[]string, _opt ...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) ListConfigWithContext ¶
func (_obj *Config) ListConfigWithContext(ctx context.Context, App string, Server string, Vf *[]string, _opt ...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, _opt ...map[string]string) (ret int32, err 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, _opt ...map[string]string) (ret int32, err error)
LoadConfigByHost is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByHostWithContext ¶
func (_obj *Config) LoadConfigByHostWithContext(ctx context.Context, AppServerName string, Filename string, Host string, Config *string, _opt ...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, _opt ...map[string]string) (ret int32, err error)
LoadConfigByInfo is the proxy function for the method defined in the tars file, with the context
func (*Config) LoadConfigByInfoWithContext ¶
func (_obj *Config) LoadConfigByInfoWithContext(ctx context.Context, ConfigInfo *ConfigInfo, Config *string, _opt ...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) LoadConfigWithContext ¶
func (_obj *Config) LoadConfigWithContext(ctx context.Context, App string, Server string, Filename string, Config *string, _opt ...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) TarsSetTimeout ¶
TarsSetTimeout sets the timeout for the servant which is in ms.
type ConfigInfo ¶
type ConfigInfo struct { Appname string `json:"appname"` Servername string `json:"servername"` Filename string `json:"filename"` BAppOnly bool `json:"bAppOnly"` Host string `json:"host"` Setdivision string `json:"setdivision"` Containername string `json:"containername"` }
ConfigInfo strcut implement
func (*ConfigInfo) ReadFrom ¶
func (st *ConfigInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*ConfigInfo) WriteBlock ¶
func (st *ConfigInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type GetConfigListInfo ¶
type GetConfigListInfo struct { Appname string `json:"appname"` Servername string `json:"servername"` BAppOnly bool `json:"bAppOnly"` Host string `json:"host"` Setdivision string `json:"setdivision"` Containername string `json:"containername"` }
GetConfigListInfo strcut implement
func (*GetConfigListInfo) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*GetConfigListInfo) ReadFrom ¶
func (st *GetConfigListInfo) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*GetConfigListInfo) WriteBlock ¶
func (st *GetConfigListInfo) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct