Documentation ¶
Index ¶
- Variables
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetChain() *Chain
- func (x *Bootstrap) GetContract() *Contract
- func (x *Bootstrap) GetDacp() *Dacp
- func (x *Bootstrap) GetData() *Data
- func (x *Bootstrap) GetEnv() ENV
- func (x *Bootstrap) GetServer() *Server
- func (x *Bootstrap) GetWallet() *Wallet
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- type Chain
- func (*Chain) Descriptor() ([]byte, []int)deprecated
- func (x *Chain) GetChainId() int64
- func (x *Chain) GetChainName() string
- func (x *Chain) GetOffsetBlock() int64
- func (x *Chain) GetRpcUrl() string
- func (x *Chain) GetStartBlock() int64
- func (*Chain) ProtoMessage()
- func (x *Chain) ProtoReflect() protoreflect.Message
- func (x *Chain) Reset()
- func (x *Chain) String() string
- type Contract
- func (*Contract) Descriptor() ([]byte, []int)deprecated
- func (x *Contract) GetAddr() string
- func (x *Contract) GetTeeAddr() string
- func (x *Contract) GetTopic() string
- func (*Contract) ProtoMessage()
- func (x *Contract) ProtoReflect() protoreflect.Message
- func (x *Contract) Reset()
- func (x *Contract) String() string
- type Dacp
- type Data
- type Data_Database
- func (*Data_Database) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Database) GetConnMaxIdleTime() *durationpb.Duration
- func (x *Data_Database) GetConnMaxLifetime() *durationpb.Duration
- func (x *Data_Database) GetDriver() string
- func (x *Data_Database) GetMaxIdleConnections() int32
- func (x *Data_Database) GetMaxOpenConnections() int32
- func (x *Data_Database) GetSource() string
- func (*Data_Database) ProtoMessage()
- func (x *Data_Database) ProtoReflect() protoreflect.Message
- func (x *Data_Database) Reset()
- func (x *Data_Database) String() string
- type ENV
- type Server
- type Server_GRPC
- func (*Server_GRPC) Descriptor() ([]byte, []int)deprecated
- func (x *Server_GRPC) GetAddr() string
- func (x *Server_GRPC) GetNetwork() string
- func (x *Server_GRPC) GetTimeout() *durationpb.Duration
- func (*Server_GRPC) ProtoMessage()
- func (x *Server_GRPC) ProtoReflect() protoreflect.Message
- func (x *Server_GRPC) Reset()
- func (x *Server_GRPC) String() string
- type Server_HTTP
- func (*Server_HTTP) Descriptor() ([]byte, []int)deprecated
- func (x *Server_HTTP) GetAddr() string
- func (x *Server_HTTP) GetNetwork() string
- func (x *Server_HTTP) GetTimeout() *durationpb.Duration
- func (*Server_HTTP) ProtoMessage()
- func (x *Server_HTTP) ProtoReflect() protoreflect.Message
- func (x *Server_HTTP) Reset()
- func (x *Server_HTTP) String() string
- type Wallet
- func (*Wallet) Descriptor() ([]byte, []int)deprecated
- func (x *Wallet) GetKeystorePassword() string
- func (x *Wallet) GetKeystorePath() string
- func (x *Wallet) GetMode() Wallet_Mode
- func (x *Wallet) GetPrivateKey() string
- func (*Wallet) ProtoMessage()
- func (x *Wallet) ProtoReflect() protoreflect.Message
- func (x *Wallet) Reset()
- func (x *Wallet) String() string
- type Wallet_Mode
- func (Wallet_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x Wallet_Mode) Enum() *Wallet_Mode
- func (Wallet_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x Wallet_Mode) Number() protoreflect.EnumNumber
- func (x Wallet_Mode) String() string
- func (Wallet_Mode) Type() protoreflect.EnumType
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) GetContract ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
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) GetChainId ¶
func (*Chain) GetChainName ¶
func (*Chain) GetOffsetBlock ¶
func (*Chain) GetStartBlock ¶
func (*Chain) ProtoMessage ¶
func (*Chain) ProtoMessage()
func (*Chain) ProtoReflect ¶
func (x *Chain) ProtoReflect() protoreflect.Message
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) GetTeeAddr ¶
func (*Contract) ProtoMessage ¶
func (*Contract) ProtoMessage()
func (*Contract) ProtoReflect ¶
func (x *Contract) ProtoReflect() protoreflect.Message
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) GetIdentityPath ¶
func (*Dacp) GetTcbPath ¶
func (*Dacp) GetTrustedPath ¶
func (*Dacp) ProtoMessage ¶
func (*Dacp) ProtoMessage()
func (*Dacp) ProtoReflect ¶
func (x *Dacp) ProtoReflect() protoreflect.Message
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) GetDatabase ¶
func (x *Data) GetDatabase() *Data_Database
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
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
func (ENV) Descriptor ¶
func (ENV) Descriptor() protoreflect.EnumDescriptor
func (ENV) EnumDescriptor
deprecated
func (ENV) Number ¶
func (x ENV) Number() protoreflect.EnumNumber
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) 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
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) GetKeystorePassword ¶
func (*Wallet) GetKeystorePath ¶
func (*Wallet) GetMode ¶
func (x *Wallet) GetMode() Wallet_Mode
func (*Wallet) GetPrivateKey ¶
func (*Wallet) ProtoMessage ¶
func (*Wallet) ProtoMessage()
func (*Wallet) ProtoReflect ¶
func (x *Wallet) ProtoReflect() protoreflect.Message
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) Descriptor() protoreflect.EnumDescriptor
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 ¶
func (Wallet_Mode) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.