configf

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: BSD-3-Clause Imports: 12 Imported by: 3

Documentation

Overview

Package configf comment This file was generated by tars2go 1.1.6 Generated from ConfigF.tars

Package configf comment This file was generated by tars2go 1.1.6 Generated from ConfigF.tars

Index

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) (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, opts ...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) 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) (ret int32, err 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) (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, opts ...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) 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) (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, opts ...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) 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) (ret int32, err 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

func (obj *Config) SetServant(servant m.Servant)

SetServant sets servant for the service.

func (*Config) TarsSetProtocol added in v1.2.0

func (obj *Config) TarsSetProtocol(p m.Protocol)

TarsSetProtocol sets the protocol for the servant.

func (*Config) TarsSetTimeout

func (obj *Config) TarsSetTimeout(timeout 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"`
}

ConfigInfo struct implement

func (*ConfigInfo) ReadBlock

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

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

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

func (*ConfigInfo) WriteTo

func (st *ConfigInfo) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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"`
	Servername    string `json:"servername"`
	BAppOnly      bool   `json:"bAppOnly"`
	Host          string `json:"host"`
	Setdivision   string `json:"setdivision"`
	Containername string `json:"containername"`
}

GetConfigListInfo struct implement

func (*GetConfigListInfo) ReadBlock

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

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

func (*GetConfigListInfo) WriteTo

func (st *GetConfigListInfo) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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