configf

package
v0.0.0-...-69ab156 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

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

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

func ListConfig(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, withContext bool) (err error)

func ListConfigByInfo

func ListConfigByInfo(ctx context.Context, _val interface{}, _os *codec.Buffer, _is *codec.Reader, withContext bool) (err error)

ListConfigByInfo body function

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

func (_obj *Config) SetServant(s m.Servant)

SetServant sets servant for the service.

func (*Config) TarsSetTimeout

func (_obj *Config) TarsSetTimeout(t int)

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) ReadBlock

func (st *ConfigInfo) ReadBlock(_is *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*ConfigInfo) WriteTo

func (st *ConfigInfo) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

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

func (st *GetConfigListInfo) ReadBlock(_is *codec.Reader, tag byte, require bool) error

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

func (*GetConfigListInfo) WriteTo

func (st *GetConfigListInfo) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL