configf

package
v1.4.36 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package configf comment This file was generated by ksf2go 1.1.7 Generated from ConfigF.ksf

Package configf comment This file was generated by ksf2go 1.1.7 Generated from ConfigF.ksf

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 ksf 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 ksf file, with the context

func (*Config) CheckConfigByInfoOneWayWithContext

func (obj *Config) CheckConfigByInfoOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) CheckConfigByInfoWithContext

func (obj *Config) CheckConfigByInfoWithContext(ksfCtx 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 ksf file, with the context

func (*Config) CheckConfigOneWayWithContext

func (obj *Config) CheckConfigOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) CheckConfigWithContext

func (obj *Config) CheckConfigWithContext(ksfCtx 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 ksf file, with the context

func (*Config) Dispatch

func (obj *Config) Dispatch(ksfCtx context.Context, val interface{}, ksfReq *requestf.RequestPacket, ksfResp *requestf.ResponsePacket, withContext bool) (err error)

Dispatch is used to call the server side implement for the method defined in the ksf file. withContext shows using context or not.

func (*Config) KsfSetProtocol

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

KsfSetProtocol sets the protocol for the servant.

func (*Config) KsfSetTimeout

func (obj *Config) KsfSetTimeout(timeout int)

KsfSetTimeout sets the timeout for the servant which is in ms.

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 ksf file, with the context

func (*Config) ListAllConfigByInfoOneWayWithContext

func (obj *Config) ListAllConfigByInfoOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) ListAllConfigByInfoWithContext

func (obj *Config) ListAllConfigByInfoWithContext(ksfCtx 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 ksf 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 ksf 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 ksf file, with the context

func (*Config) ListConfigByInfoOneWayWithContext

func (obj *Config) ListConfigByInfoOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) ListConfigByInfoWithContext

func (obj *Config) ListConfigByInfoWithContext(ksfCtx 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 ksf file, with the context

func (*Config) ListConfigOneWayWithContext

func (obj *Config) ListConfigOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) ListConfigWithContext

func (obj *Config) ListConfigWithContext(ksfCtx 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 ksf 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 ksf 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 ksf file, with the context

func (*Config) LoadConfigByHostOneWayWithContext

func (obj *Config) LoadConfigByHostOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) LoadConfigByHostWithContext

func (obj *Config) LoadConfigByHostWithContext(ksfCtx 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 ksf 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 ksf file, with the context

func (*Config) LoadConfigByInfoOneWayWithContext

func (obj *Config) LoadConfigByInfoOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) LoadConfigByInfoWithContext

func (obj *Config) LoadConfigByInfoWithContext(ksfCtx 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 ksf file, with the context

func (*Config) LoadConfigOneWayWithContext

func (obj *Config) LoadConfigOneWayWithContext(ksfCtx 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 ksf file, with the context

func (*Config) LoadConfigWithContext

func (obj *Config) LoadConfigWithContext(ksfCtx 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 ksf file, with the context

func (*Config) SetServant

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

SetServant sets servant for the service.

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

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

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

type ConfigServantWithContext interface {
	ListConfig(ksfCtx context.Context, app string, server string, vf *[]string) (ret int32, err error)
	LoadConfig(ksfCtx context.Context, app string, server string, filename string, config *string) (ret int32, err error)
	LoadConfigByHost(ksfCtx context.Context, appServerName string, filename string, host string, config *string) (ret int32, err error)
	CheckConfig(ksfCtx context.Context, appServerName string, filename string, host string, result *string) (ret int32, err error)
	ListConfigByInfo(ksfCtx context.Context, configInfo *ConfigInfo, vf *[]string) (ret int32, err error)
	LoadConfigByInfo(ksfCtx context.Context, configInfo *ConfigInfo, config *string) (ret int32, err error)
	CheckConfigByInfo(ksfCtx context.Context, configInfo *ConfigInfo, result *string) (ret int32, err error)
	ListAllConfigByInfo(ksfCtx 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

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