conf

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ENV_name = map[int32]string{
		0: "ENV_UNSPECIFIED",
		1: "ENV_LOCAL",
		2: "ENV_DEV",
		3: "ENV_UAT",
		4: "ENV_PROD",
	}
	ENV_value = map[string]int32{
		"ENV_UNSPECIFIED": 0,
		"ENV_LOCAL":       1,
		"ENV_DEV":         2,
		"ENV_UAT":         3,
		"ENV_PROD":        4,
	}
)

Enum value maps for ENV.

View Source
var (
	Wallet_Mode_name = map[int32]string{
		0: "ModeEnvVar",
		1: "ModePrivateKey",
		2: "ModeKeyStore",
	}
	Wallet_Mode_value = map[string]int32{
		"ModeEnvVar":     0,
		"ModePrivateKey": 1,
		"ModeKeyStore":   2,
	}
)

Enum value maps for Wallet_Mode.

View Source
var File_conf_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {
	Server   *Server   `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	Data     *Data     `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Env      ENV       `protobuf:"varint,3,opt,name=env,proto3,enum=kratos.api.ENV" json:"env,omitempty"`
	Chain    *Chain    `protobuf:"bytes,4,opt,name=chain,proto3" json:"chain,omitempty"`
	Contract *Contract `protobuf:"bytes,5,opt,name=contract,proto3" json:"contract,omitempty"`
	Wallet   *Wallet   `protobuf:"bytes,6,opt,name=wallet,proto3" json:"wallet,omitempty"`
	Dacp     *Dacp     `protobuf:"bytes,7,opt,name=dacp,proto3" json:"dacp,omitempty"`
	// contains filtered or unexported fields
}

func (*Bootstrap) Descriptor deprecated

func (*Bootstrap) Descriptor() ([]byte, []int)

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetChain

func (x *Bootstrap) GetChain() *Chain

func (*Bootstrap) GetContract

func (x *Bootstrap) GetContract() *Contract

func (*Bootstrap) GetDacp

func (x *Bootstrap) GetDacp() *Dacp

func (*Bootstrap) GetData

func (x *Bootstrap) GetData() *Data

func (*Bootstrap) GetEnv

func (x *Bootstrap) GetEnv() ENV

func (*Bootstrap) GetServer

func (x *Bootstrap) GetServer() *Server

func (*Bootstrap) GetWallet

func (x *Bootstrap) GetWallet() *Wallet

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

func (x *Bootstrap) ProtoReflect() protoreflect.Message

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

type Chain

type Chain struct {
	ChainId     int64  `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ChainName   string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	RpcUrl      string `protobuf:"bytes,3,opt,name=rpc_url,json=rpcUrl,proto3" json:"rpc_url,omitempty"`
	StartBlock  int64  `protobuf:"varint,4,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	OffsetBlock int64  `protobuf:"varint,5,opt,name=offset_block,json=offsetBlock,proto3" json:"offset_block,omitempty"`
	// contains filtered or unexported fields
}

func (*Chain) Descriptor deprecated

func (*Chain) Descriptor() ([]byte, []int)

Deprecated: Use Chain.ProtoReflect.Descriptor instead.

func (*Chain) GetChainId

func (x *Chain) GetChainId() int64

func (*Chain) GetChainName

func (x *Chain) GetChainName() string

func (*Chain) GetOffsetBlock

func (x *Chain) GetOffsetBlock() int64

func (*Chain) GetRpcUrl

func (x *Chain) GetRpcUrl() string

func (*Chain) GetStartBlock

func (x *Chain) GetStartBlock() int64

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) ProtoReflect

func (x *Chain) ProtoReflect() protoreflect.Message

func (*Chain) Reset

func (x *Chain) Reset()

func (*Chain) String

func (x *Chain) String() string

type Contract

type Contract struct {
	Addr    string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	TeeAddr string `protobuf:"bytes,2,opt,name=tee_addr,json=teeAddr,proto3" json:"tee_addr,omitempty"`
	Topic   string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"`
	// contains filtered or unexported fields
}

func (*Contract) Descriptor deprecated

func (*Contract) Descriptor() ([]byte, []int)

Deprecated: Use Contract.ProtoReflect.Descriptor instead.

func (*Contract) GetAddr

func (x *Contract) GetAddr() string

func (*Contract) GetTeeAddr

func (x *Contract) GetTeeAddr() string

func (*Contract) GetTopic

func (x *Contract) GetTopic() string

func (*Contract) ProtoMessage

func (*Contract) ProtoMessage()

func (*Contract) ProtoReflect

func (x *Contract) ProtoReflect() protoreflect.Message

func (*Contract) Reset

func (x *Contract) Reset()

func (*Contract) String

func (x *Contract) String() string

type Dacp

type Dacp struct {
	IdentityPath string `protobuf:"bytes,1,opt,name=identity_path,json=identityPath,proto3" json:"identity_path,omitempty"`
	TcbPath      string `protobuf:"bytes,2,opt,name=tcb_path,json=tcbPath,proto3" json:"tcb_path,omitempty"`
	TrustedPath  string `protobuf:"bytes,3,opt,name=trusted_path,json=trustedPath,proto3" json:"trusted_path,omitempty"`
	// contains filtered or unexported fields
}

func (*Dacp) Descriptor deprecated

func (*Dacp) Descriptor() ([]byte, []int)

Deprecated: Use Dacp.ProtoReflect.Descriptor instead.

func (*Dacp) GetIdentityPath

func (x *Dacp) GetIdentityPath() string

func (*Dacp) GetTcbPath

func (x *Dacp) GetTcbPath() string

func (*Dacp) GetTrustedPath

func (x *Dacp) GetTrustedPath() string

func (*Dacp) ProtoMessage

func (*Dacp) ProtoMessage()

func (*Dacp) ProtoReflect

func (x *Dacp) ProtoReflect() protoreflect.Message

func (*Dacp) Reset

func (x *Dacp) Reset()

func (*Dacp) String

func (x *Dacp) String() string

type Data

type Data struct {
	Database *Data_Database `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

func (*Data) Descriptor() ([]byte, []int)

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetDatabase

func (x *Data) GetDatabase() *Data_Database

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

func (x *Data) ProtoReflect() protoreflect.Message

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Data_Database

type Data_Database struct {
	Driver             string               `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source             string               `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	MaxOpenConnections int32                `protobuf:"varint,3,opt,name=max_open_connections,json=maxOpenConnections,proto3" json:"max_open_connections,omitempty"`
	MaxIdleConnections int32                `protobuf:"varint,4,opt,name=max_idle_connections,json=maxIdleConnections,proto3" json:"max_idle_connections,omitempty"`
	ConnMaxLifetime    *durationpb.Duration `protobuf:"bytes,5,opt,name=conn_max_lifetime,json=connMaxLifetime,proto3" json:"conn_max_lifetime,omitempty"`
	ConnMaxIdleTime    *durationpb.Duration `protobuf:"bytes,6,opt,name=conn_max_idle_time,json=connMaxIdleTime,proto3" json:"conn_max_idle_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Data_Database) Descriptor deprecated

func (*Data_Database) Descriptor() ([]byte, []int)

Deprecated: Use Data_Database.ProtoReflect.Descriptor instead.

func (*Data_Database) GetConnMaxIdleTime

func (x *Data_Database) GetConnMaxIdleTime() *durationpb.Duration

func (*Data_Database) GetConnMaxLifetime

func (x *Data_Database) GetConnMaxLifetime() *durationpb.Duration

func (*Data_Database) GetDriver

func (x *Data_Database) GetDriver() string

func (*Data_Database) GetMaxIdleConnections

func (x *Data_Database) GetMaxIdleConnections() int32

func (*Data_Database) GetMaxOpenConnections

func (x *Data_Database) GetMaxOpenConnections() int32

func (*Data_Database) GetSource

func (x *Data_Database) GetSource() string

func (*Data_Database) ProtoMessage

func (*Data_Database) ProtoMessage()

func (*Data_Database) ProtoReflect

func (x *Data_Database) ProtoReflect() protoreflect.Message

func (*Data_Database) Reset

func (x *Data_Database) Reset()

func (*Data_Database) String

func (x *Data_Database) String() string

type ENV

type ENV int32
const (
	ENV_ENV_UNSPECIFIED ENV = 0
	ENV_ENV_LOCAL       ENV = 1
	ENV_ENV_DEV         ENV = 2
	ENV_ENV_UAT         ENV = 3
	ENV_ENV_PROD        ENV = 4
)

func (ENV) Descriptor

func (ENV) Descriptor() protoreflect.EnumDescriptor

func (ENV) Enum

func (x ENV) Enum() *ENV

func (ENV) EnumDescriptor deprecated

func (ENV) EnumDescriptor() ([]byte, []int)

Deprecated: Use ENV.Descriptor instead.

func (ENV) Number

func (x ENV) Number() protoreflect.EnumNumber

func (ENV) String

func (x ENV) String() string

func (ENV) Type

func (ENV) Type() protoreflect.EnumType

type Server

type Server struct {
	Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

func (*Server) Descriptor() ([]byte, []int)

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

func (x *Server) ProtoReflect() protoreflect.Message

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type Server_GRPC

type Server_GRPC struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_GRPC) Descriptor deprecated

func (*Server_GRPC) Descriptor() ([]byte, []int)

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetAddr

func (x *Server_GRPC) GetAddr() string

func (*Server_GRPC) GetNetwork

func (x *Server_GRPC) GetNetwork() string

func (*Server_GRPC) GetTimeout

func (x *Server_GRPC) GetTimeout() *durationpb.Duration

func (*Server_GRPC) ProtoMessage

func (*Server_GRPC) ProtoMessage()

func (*Server_GRPC) ProtoReflect

func (x *Server_GRPC) ProtoReflect() protoreflect.Message

func (*Server_GRPC) Reset

func (x *Server_GRPC) Reset()

func (*Server_GRPC) String

func (x *Server_GRPC) String() string

type Server_HTTP

type Server_HTTP struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP) Descriptor deprecated

func (*Server_HTTP) Descriptor() ([]byte, []int)

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetAddr

func (x *Server_HTTP) GetAddr() string

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetTimeout

func (x *Server_HTTP) GetTimeout() *durationpb.Duration

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

func (x *Server_HTTP) ProtoReflect() protoreflect.Message

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

type Wallet

type Wallet struct {
	Mode             Wallet_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=kratos.api.Wallet_Mode" json:"mode,omitempty"`
	PrivateKey       string      `protobuf:"bytes,2,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	KeystorePath     string      `protobuf:"bytes,3,opt,name=keystore_path,json=keystorePath,proto3" json:"keystore_path,omitempty"`
	KeystorePassword string      `protobuf:"bytes,4,opt,name=keystore_password,json=keystorePassword,proto3" json:"keystore_password,omitempty"`
	// contains filtered or unexported fields
}

func (*Wallet) Descriptor deprecated

func (*Wallet) Descriptor() ([]byte, []int)

Deprecated: Use Wallet.ProtoReflect.Descriptor instead.

func (*Wallet) GetKeystorePassword

func (x *Wallet) GetKeystorePassword() string

func (*Wallet) GetKeystorePath

func (x *Wallet) GetKeystorePath() string

func (*Wallet) GetMode

func (x *Wallet) GetMode() Wallet_Mode

func (*Wallet) GetPrivateKey

func (x *Wallet) GetPrivateKey() string

func (*Wallet) ProtoMessage

func (*Wallet) ProtoMessage()

func (*Wallet) ProtoReflect

func (x *Wallet) ProtoReflect() protoreflect.Message

func (*Wallet) Reset

func (x *Wallet) Reset()

func (*Wallet) String

func (x *Wallet) String() string

type Wallet_Mode

type Wallet_Mode int32
const (
	Wallet_ModeEnvVar     Wallet_Mode = 0
	Wallet_ModePrivateKey Wallet_Mode = 1
	Wallet_ModeKeyStore   Wallet_Mode = 2
)

func (Wallet_Mode) Descriptor

func (Wallet_Mode) Enum

func (x Wallet_Mode) Enum() *Wallet_Mode

func (Wallet_Mode) EnumDescriptor deprecated

func (Wallet_Mode) EnumDescriptor() ([]byte, []int)

Deprecated: Use Wallet_Mode.Descriptor instead.

func (Wallet_Mode) Number

func (x Wallet_Mode) Number() protoreflect.EnumNumber

func (Wallet_Mode) String

func (x Wallet_Mode) String() string

func (Wallet_Mode) Type

Jump to

Keyboard shortcuts

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