Documentation ¶
Overview ¶
Code generated by protoc-gen-auth. DO NOT EDIT! source: balance.proto
Package wallet is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: deposit.proto
Package wallet is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: exchange.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: include.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_budget.proto
Code generated by protoc-gen-auth. DO NOT EDIT! source: inner_currency.proto
Package wallet is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-auth. DO NOT EDIT! source: withdraw.proto
Index ¶
- Variables
- func RegisterBalanceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBalanceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BalanceClient) error
- func RegisterBalanceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBalanceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BalanceServer) error
- func RegisterBalanceScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterBalanceServer(s *grpc.Server, srv BalanceServer)
- func RegisterDepositHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterDepositHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepositClient) error
- func RegisterDepositHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterDepositHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepositServer) error
- func RegisterDepositScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterDepositServer(s *grpc.Server, srv DepositServer)
- func RegisterExchangeScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterExchangeServer(s *grpc.Server, srv ExchangeServer)
- func RegisterInnerBudgetScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerBudgetServer(s *grpc.Server, srv InnerBudgetServer)
- func RegisterInnerCurrencyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterInnerCurrencyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerCurrencyClient) error
- func RegisterInnerCurrencyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterInnerCurrencyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerCurrencyServer) error
- func RegisterInnerCurrencyScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterInnerCurrencyServer(s *grpc.Server, srv InnerCurrencyServer)
- func RegisterWithdrawScopeServer(component string, auth service.Authenticator, impl service.Implementor, ...) error
- func RegisterWithdrawServer(s *grpc.Server, srv WithdrawServer)
- type AccountBalance
- func (*AccountBalance) Descriptor() ([]byte, []int)
- func (m *AccountBalance) GetAccount() uint64
- func (m *AccountBalance) GetBalance() uint64
- func (m *AccountBalance) GetCreatedAt() *timestamp.Timestamp
- func (m *AccountBalance) GetCurrency() uint64
- func (m *AccountBalance) GetFrozen() uint64
- func (m *AccountBalance) GetStatus() ActiveStatus
- func (m *AccountBalance) GetType() AccountType
- func (m *AccountBalance) GetUpdatedAt() *timestamp.Timestamp
- func (*AccountBalance) ProtoMessage()
- func (m *AccountBalance) Reset()
- func (m *AccountBalance) String() string
- func (m *AccountBalance) Validate() error
- func (m *AccountBalance) XXX_DiscardUnknown()
- func (m *AccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountBalance) XXX_Merge(src proto.Message)
- func (m *AccountBalance) XXX_Size() int
- func (m *AccountBalance) XXX_Unmarshal(b []byte) error
- type AccountBalanceValidationError
- func (e AccountBalanceValidationError) Cause() error
- func (e AccountBalanceValidationError) Error() string
- func (e AccountBalanceValidationError) ErrorName() string
- func (e AccountBalanceValidationError) Field() string
- func (e AccountBalanceValidationError) Key() bool
- func (e AccountBalanceValidationError) Reason() string
- type AccountType
- type ActionType
- type ActiveStatus
- type BalanceClient
- type BalanceServer
- type Channel
- type ChargeOption
- func (*ChargeOption) Descriptor() ([]byte, []int)
- func (m *ChargeOption) GetAmount() uint64
- func (m *ChargeOption) GetAvatar() string
- func (m *ChargeOption) GetCurrency() uint64
- func (m *ChargeOption) GetDescription() string
- func (m *ChargeOption) GetName() string
- func (m *ChargeOption) GetPrice() uint64
- func (m *ChargeOption) GetUniqueId() uint64
- func (*ChargeOption) ProtoMessage()
- func (m *ChargeOption) Reset()
- func (m *ChargeOption) String() string
- func (m *ChargeOption) Validate() error
- func (m *ChargeOption) XXX_DiscardUnknown()
- func (m *ChargeOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeOption) XXX_Merge(src proto.Message)
- func (m *ChargeOption) XXX_Size() int
- func (m *ChargeOption) XXX_Unmarshal(b []byte) error
- type ChargeOptionValidationError
- func (e ChargeOptionValidationError) Cause() error
- func (e ChargeOptionValidationError) Error() string
- func (e ChargeOptionValidationError) ErrorName() string
- func (e ChargeOptionValidationError) Field() string
- func (e ChargeOptionValidationError) Key() bool
- func (e ChargeOptionValidationError) Reason() string
- type ChargeOptions
- func (*ChargeOptions) Descriptor() ([]byte, []int)
- func (m *ChargeOptions) GetOptions() []*ChargeOption
- func (*ChargeOptions) ProtoMessage()
- func (m *ChargeOptions) Reset()
- func (m *ChargeOptions) String() string
- func (m *ChargeOptions) Validate() error
- func (m *ChargeOptions) XXX_DiscardUnknown()
- func (m *ChargeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeOptions) XXX_Merge(src proto.Message)
- func (m *ChargeOptions) XXX_Size() int
- func (m *ChargeOptions) XXX_Unmarshal(b []byte) error
- type ChargeOptionsValidationError
- func (e ChargeOptionsValidationError) Cause() error
- func (e ChargeOptionsValidationError) Error() string
- func (e ChargeOptionsValidationError) ErrorName() string
- func (e ChargeOptionsValidationError) Field() string
- func (e ChargeOptionsValidationError) Key() bool
- func (e ChargeOptionsValidationError) Reason() string
- type ChargeOrder
- func (*ChargeOrder) Descriptor() ([]byte, []int)
- func (m *ChargeOrder) GetAccount() uint64
- func (m *ChargeOrder) GetChannel() uint64
- func (m *ChargeOrder) GetChannelResponse() string
- func (m *ChargeOrder) GetCreatedAt() *timestamp.Timestamp
- func (m *ChargeOrder) GetCurrency() uint64
- func (m *ChargeOrder) GetMerchantOrderId() string
- func (m *ChargeOrder) GetOptionCount() uint32
- func (m *ChargeOrder) GetOptionId() uint64
- func (m *ChargeOrder) GetOrderId() uint64
- func (m *ChargeOrder) GetPayOrderId() string
- func (m *ChargeOrder) GetPrice() uint64
- func (m *ChargeOrder) GetProduct() string
- func (m *ChargeOrder) GetRequestSn() string
- func (m *ChargeOrder) GetStatus() OrderStatus
- func (m *ChargeOrder) GetSuccessAt() *timestamp.Timestamp
- func (*ChargeOrder) ProtoMessage()
- func (m *ChargeOrder) Reset()
- func (m *ChargeOrder) String() string
- func (m *ChargeOrder) Validate() error
- func (m *ChargeOrder) XXX_DiscardUnknown()
- func (m *ChargeOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChargeOrder) XXX_Merge(src proto.Message)
- func (m *ChargeOrder) XXX_Size() int
- func (m *ChargeOrder) XXX_Unmarshal(b []byte) error
- type ChargeOrderValidationError
- func (e ChargeOrderValidationError) Cause() error
- func (e ChargeOrderValidationError) Error() string
- func (e ChargeOrderValidationError) ErrorName() string
- func (e ChargeOrderValidationError) Field() string
- func (e ChargeOrderValidationError) Key() bool
- func (e ChargeOrderValidationError) Reason() string
- type Currencies
- func (*Currencies) Descriptor() ([]byte, []int)
- func (m *Currencies) GetList() []*Currency
- func (*Currencies) ProtoMessage()
- func (m *Currencies) Reset()
- func (m *Currencies) String() string
- func (m *Currencies) Validate() error
- func (m *Currencies) XXX_DiscardUnknown()
- func (m *Currencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Currencies) XXX_Merge(src proto.Message)
- func (m *Currencies) XXX_Size() int
- func (m *Currencies) XXX_Unmarshal(b []byte) error
- type CurrenciesValidationError
- type Currency
- func (*Currency) Descriptor() ([]byte, []int)
- func (m *Currency) GetDescription() string
- func (m *Currency) GetExchangeRate() float32
- func (m *Currency) GetMetric() string
- func (m *Currency) GetName() string
- func (m *Currency) GetStatus() ActiveStatus
- func (m *Currency) GetUniqueId() uint64
- func (*Currency) ProtoMessage()
- func (m *Currency) Reset()
- func (m *Currency) String() string
- func (m *Currency) Validate() error
- func (m *Currency) XXX_DiscardUnknown()
- func (m *Currency) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Currency) XXX_Merge(src proto.Message)
- func (m *Currency) XXX_Size() int
- func (m *Currency) XXX_Unmarshal(b []byte) error
- type CurrencyChargeConfig
- func (*CurrencyChargeConfig) Descriptor() ([]byte, []int)
- func (m *CurrencyChargeConfig) GetOperate() *CurrencyOperateConfig
- func (m *CurrencyChargeConfig) GetRefundStatus() ActiveStatus
- func (*CurrencyChargeConfig) ProtoMessage()
- func (m *CurrencyChargeConfig) Reset()
- func (m *CurrencyChargeConfig) String() string
- func (m *CurrencyChargeConfig) Validate() error
- func (m *CurrencyChargeConfig) XXX_DiscardUnknown()
- func (m *CurrencyChargeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyChargeConfig) XXX_Merge(src proto.Message)
- func (m *CurrencyChargeConfig) XXX_Size() int
- func (m *CurrencyChargeConfig) XXX_Unmarshal(b []byte) error
- type CurrencyChargeConfigValidationError
- func (e CurrencyChargeConfigValidationError) Cause() error
- func (e CurrencyChargeConfigValidationError) Error() string
- func (e CurrencyChargeConfigValidationError) ErrorName() string
- func (e CurrencyChargeConfigValidationError) Field() string
- func (e CurrencyChargeConfigValidationError) Key() bool
- func (e CurrencyChargeConfigValidationError) Reason() string
- type CurrencyConfig
- func (*CurrencyConfig) Descriptor() ([]byte, []int)
- func (m *CurrencyConfig) GetCharge() map[uint64]*CurrencyChargeConfig
- func (m *CurrencyConfig) GetConsume() map[uint64]*CurrencyOperateConfig
- func (m *CurrencyConfig) GetExchange() map[uint64]*CurrencyExchangeConfig
- func (m *CurrencyConfig) GetSourceCurrency() uint64
- func (m *CurrencyConfig) GetWithdraw() map[uint64]*CurrencyWithdrawConfig
- func (*CurrencyConfig) ProtoMessage()
- func (m *CurrencyConfig) Reset()
- func (m *CurrencyConfig) String() string
- func (m *CurrencyConfig) Validate() error
- func (m *CurrencyConfig) XXX_DiscardUnknown()
- func (m *CurrencyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyConfig) XXX_Merge(src proto.Message)
- func (m *CurrencyConfig) XXX_Size() int
- func (m *CurrencyConfig) XXX_Unmarshal(b []byte) error
- type CurrencyConfigValidationError
- func (e CurrencyConfigValidationError) Cause() error
- func (e CurrencyConfigValidationError) Error() string
- func (e CurrencyConfigValidationError) ErrorName() string
- func (e CurrencyConfigValidationError) Field() string
- func (e CurrencyConfigValidationError) Key() bool
- func (e CurrencyConfigValidationError) Reason() string
- type CurrencyExchangeConfig
- func (*CurrencyExchangeConfig) Descriptor() ([]byte, []int)
- func (m *CurrencyExchangeConfig) GetDiscountAction() ActionType
- func (m *CurrencyExchangeConfig) GetDiscountRate() uint64
- func (m *CurrencyExchangeConfig) GetExchangeRate() uint64
- func (m *CurrencyExchangeConfig) GetStatus() ActiveStatus
- func (m *CurrencyExchangeConfig) GetSystemBudgetId() string
- func (m *CurrencyExchangeConfig) GetTargetCurrency() uint64
- func (*CurrencyExchangeConfig) ProtoMessage()
- func (m *CurrencyExchangeConfig) Reset()
- func (m *CurrencyExchangeConfig) String() string
- func (m *CurrencyExchangeConfig) Validate() error
- func (m *CurrencyExchangeConfig) XXX_DiscardUnknown()
- func (m *CurrencyExchangeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyExchangeConfig) XXX_Merge(src proto.Message)
- func (m *CurrencyExchangeConfig) XXX_Size() int
- func (m *CurrencyExchangeConfig) XXX_Unmarshal(b []byte) error
- type CurrencyExchangeConfigValidationError
- func (e CurrencyExchangeConfigValidationError) Cause() error
- func (e CurrencyExchangeConfigValidationError) Error() string
- func (e CurrencyExchangeConfigValidationError) ErrorName() string
- func (e CurrencyExchangeConfigValidationError) Field() string
- func (e CurrencyExchangeConfigValidationError) Key() bool
- func (e CurrencyExchangeConfigValidationError) Reason() string
- type CurrencyOperateConfig
- func (*CurrencyOperateConfig) Descriptor() ([]byte, []int)
- func (m *CurrencyOperateConfig) GetDescription() string
- func (m *CurrencyOperateConfig) GetSourceAction() ActionType
- func (m *CurrencyOperateConfig) GetSourceBudgetId() uint64
- func (m *CurrencyOperateConfig) GetSourceJournal() JournalType
- func (m *CurrencyOperateConfig) GetSourceSubject() SubjectType
- func (m *CurrencyOperateConfig) GetStatus() ActiveStatus
- func (m *CurrencyOperateConfig) GetTargetAction() ActionType
- func (m *CurrencyOperateConfig) GetTargetBudgetId() uint64
- func (m *CurrencyOperateConfig) GetTargetCurrency() uint64
- func (m *CurrencyOperateConfig) GetTargetJournal() JournalType
- func (m *CurrencyOperateConfig) GetTargetSubject() SubjectType
- func (*CurrencyOperateConfig) ProtoMessage()
- func (m *CurrencyOperateConfig) Reset()
- func (m *CurrencyOperateConfig) String() string
- func (m *CurrencyOperateConfig) Validate() error
- func (m *CurrencyOperateConfig) XXX_DiscardUnknown()
- func (m *CurrencyOperateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyOperateConfig) XXX_Merge(src proto.Message)
- func (m *CurrencyOperateConfig) XXX_Size() int
- func (m *CurrencyOperateConfig) XXX_Unmarshal(b []byte) error
- type CurrencyOperateConfigValidationError
- func (e CurrencyOperateConfigValidationError) Cause() error
- func (e CurrencyOperateConfigValidationError) Error() string
- func (e CurrencyOperateConfigValidationError) ErrorName() string
- func (e CurrencyOperateConfigValidationError) Field() string
- func (e CurrencyOperateConfigValidationError) Key() bool
- func (e CurrencyOperateConfigValidationError) Reason() string
- type CurrencyValidationError
- type CurrencyWithdrawConfig
- func (*CurrencyWithdrawConfig) Descriptor() ([]byte, []int)
- func (m *CurrencyWithdrawConfig) GetChannels() map[string]string
- func (m *CurrencyWithdrawConfig) GetFeeAction() ActionType
- func (m *CurrencyWithdrawConfig) GetFeeBudgetId() string
- func (m *CurrencyWithdrawConfig) GetFeeRate() uint64
- func (m *CurrencyWithdrawConfig) GetPayerMessage() string
- func (m *CurrencyWithdrawConfig) GetPayerName() string
- func (m *CurrencyWithdrawConfig) GetStatus() ActiveStatus
- func (m *CurrencyWithdrawConfig) GetTargetCurrency() string
- func (m *CurrencyWithdrawConfig) GetTaxAction() ActionType
- func (m *CurrencyWithdrawConfig) GetTaxBudgetId() string
- func (m *CurrencyWithdrawConfig) GetTaxRate() uint64
- func (*CurrencyWithdrawConfig) ProtoMessage()
- func (m *CurrencyWithdrawConfig) Reset()
- func (m *CurrencyWithdrawConfig) String() string
- func (m *CurrencyWithdrawConfig) Validate() error
- func (m *CurrencyWithdrawConfig) XXX_DiscardUnknown()
- func (m *CurrencyWithdrawConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrencyWithdrawConfig) XXX_Merge(src proto.Message)
- func (m *CurrencyWithdrawConfig) XXX_Size() int
- func (m *CurrencyWithdrawConfig) XXX_Unmarshal(b []byte) error
- type CurrencyWithdrawConfigValidationError
- func (e CurrencyWithdrawConfigValidationError) Cause() error
- func (e CurrencyWithdrawConfigValidationError) Error() string
- func (e CurrencyWithdrawConfigValidationError) ErrorName() string
- func (e CurrencyWithdrawConfigValidationError) Field() string
- func (e CurrencyWithdrawConfigValidationError) Key() bool
- func (e CurrencyWithdrawConfigValidationError) Reason() string
- type DepositClient
- type DepositServer
- type ExchangeClient
- type ExchangeServer
- type InnerBudgetClient
- type InnerBudgetServer
- type InnerCurrencyClient
- type InnerCurrencyServer
- type JournalType
- type OrderStatus
- type SubjectType
- type UnimplementedBalanceServer
- type UnimplementedDepositServer
- func (*UnimplementedDepositServer) Charge(ctx context.Context, req *ChargeOrder) (*ChargeOrder, error)
- func (*UnimplementedDepositServer) Confirm(ctx context.Context, req *ChargeOrder) (*ChargeOrder, error)
- func (*UnimplementedDepositServer) GetOptions(ctx context.Context, req *ChargeOption) (*ChargeOptions, error)
- type UnimplementedExchangeServer
- type UnimplementedInnerBudgetServer
- type UnimplementedInnerCurrencyServer
- func (*UnimplementedInnerCurrencyServer) Add(ctx context.Context, req *Currency) (*Currency, error)
- func (*UnimplementedInnerCurrencyServer) AddConfig(ctx context.Context, req *CurrencyConfig) (*CurrencyConfig, error)
- func (*UnimplementedInnerCurrencyServer) Get(ctx context.Context, req *common.UniqueId) (*Currency, error)
- func (*UnimplementedInnerCurrencyServer) GetAll(ctx context.Context, req *empty.Empty) (*Currencies, error)
- func (*UnimplementedInnerCurrencyServer) GetConfig(ctx context.Context, req *common.UniqueId) (*CurrencyConfig, error)
- func (*UnimplementedInnerCurrencyServer) Update(ctx context.Context, req *Currency) (*Currency, error)
- func (*UnimplementedInnerCurrencyServer) UpdateConfig(ctx context.Context, req *CurrencyConfig) (*CurrencyConfig, error)
- type UnimplementedWithdrawServer
- type WalletId
- func (*WalletId) Descriptor() ([]byte, []int)
- func (m *WalletId) GetAccount() uint64
- func (m *WalletId) GetCurrency() uint64
- func (*WalletId) ProtoMessage()
- func (m *WalletId) Reset()
- func (m *WalletId) String() string
- func (m *WalletId) Validate() error
- func (m *WalletId) XXX_DiscardUnknown()
- func (m *WalletId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WalletId) XXX_Merge(src proto.Message)
- func (m *WalletId) XXX_Size() int
- func (m *WalletId) XXX_Unmarshal(b []byte) error
- type WalletIdValidationError
- type WithdrawClient
- type WithdrawServer
Constants ¶
This section is empty.
Variables ¶
var AccountType_name = map[int32]string{
0: "ACCOUNT_TYPE_UNSPECIFIED",
1: "ACCOUNT_TYPE_NORMAL",
2: "ACCOUNT_TYPE_SYSTEM",
}
var AccountType_value = map[string]int32{
"ACCOUNT_TYPE_UNSPECIFIED": 0,
"ACCOUNT_TYPE_NORMAL": 1,
"ACCOUNT_TYPE_SYSTEM": 2,
}
var ActionType_name = map[int32]string{
0: "ACTION_TYPE_UNSPECIFIED",
}
var ActionType_value = map[string]int32{
"ACTION_TYPE_UNSPECIFIED": 0,
}
var ActiveStatus_name = map[int32]string{
0: "ACTIVE_STATUS_UNSPECIFIED",
}
var ActiveStatus_value = map[string]int32{
"ACTIVE_STATUS_UNSPECIFIED": 0,
}
var Channel_name = map[int32]string{
0: "CHANNEL_UNSPECIFIED",
1: "CHANNEL_WECHAT",
2: "CHANNEL_ALIPAY",
3: "CHANNEL_IN_APP_APPLE",
4: "CHANNEL_IN_APP_GOOGLE",
}
var Channel_value = map[string]int32{
"CHANNEL_UNSPECIFIED": 0,
"CHANNEL_WECHAT": 1,
"CHANNEL_ALIPAY": 2,
"CHANNEL_IN_APP_APPLE": 3,
"CHANNEL_IN_APP_GOOGLE": 4,
}
var JournalType_name = map[int32]string{
0: "JOURNAL_TYPE_UNSPECIFIED",
}
var JournalType_value = map[string]int32{
"JOURNAL_TYPE_UNSPECIFIED": 0,
}
var OrderStatus_name = map[int32]string{
0: "ORDER_STATUS_UNSPECIFIED",
}
var OrderStatus_value = map[string]int32{
"ORDER_STATUS_UNSPECIFIED": 0,
}
var SubjectType_name = map[int32]string{
0: "SUBJECT_TYPE_UNSPECIFIED",
}
var SubjectType_value = map[string]int32{
"SUBJECT_TYPE_UNSPECIFIED": 0,
}
Functions ¶
func RegisterBalanceHandler ¶
func RegisterBalanceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBalanceHandler registers the http handlers for service Balance to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBalanceHandlerClient ¶
func RegisterBalanceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BalanceClient) error
RegisterBalanceHandlerClient registers the http handlers for service Balance to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BalanceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BalanceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BalanceClient" to call the correct interceptors.
func RegisterBalanceHandlerFromEndpoint ¶
func RegisterBalanceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBalanceHandlerFromEndpoint is same as RegisterBalanceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBalanceHandlerServer ¶
func RegisterBalanceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BalanceServer) error
RegisterBalanceHandlerServer registers the http handlers for service Balance to "mux". UnaryRPC :call BalanceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterBalanceScopeServer ¶
func RegisterBalanceScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv BalanceServer) error
Register scoped server.
func RegisterBalanceServer ¶
func RegisterBalanceServer(s *grpc.Server, srv BalanceServer)
func RegisterDepositHandler ¶
func RegisterDepositHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterDepositHandler registers the http handlers for service Deposit to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDepositHandlerClient ¶
func RegisterDepositHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DepositClient) error
RegisterDepositHandlerClient registers the http handlers for service Deposit to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DepositClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DepositClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DepositClient" to call the correct interceptors.
func RegisterDepositHandlerFromEndpoint ¶
func RegisterDepositHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterDepositHandlerFromEndpoint is same as RegisterDepositHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDepositHandlerServer ¶
func RegisterDepositHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DepositServer) error
RegisterDepositHandlerServer registers the http handlers for service Deposit to "mux". UnaryRPC :call DepositServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterDepositScopeServer ¶
func RegisterDepositScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv DepositServer) error
Register scoped server.
func RegisterDepositServer ¶
func RegisterDepositServer(s *grpc.Server, srv DepositServer)
func RegisterExchangeScopeServer ¶
func RegisterExchangeScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv ExchangeServer) error
Register scoped server.
func RegisterExchangeServer ¶
func RegisterExchangeServer(s *grpc.Server, srv ExchangeServer)
func RegisterInnerBudgetScopeServer ¶
func RegisterInnerBudgetScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerBudgetServer) error
Register scoped server.
func RegisterInnerBudgetServer ¶
func RegisterInnerBudgetServer(s *grpc.Server, srv InnerBudgetServer)
func RegisterInnerCurrencyHandler ¶
func RegisterInnerCurrencyHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterInnerCurrencyHandler registers the http handlers for service InnerCurrency to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterInnerCurrencyHandlerClient ¶
func RegisterInnerCurrencyHandlerClient(ctx context.Context, mux *runtime.ServeMux, client InnerCurrencyClient) error
RegisterInnerCurrencyHandlerClient registers the http handlers for service InnerCurrency to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "InnerCurrencyClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "InnerCurrencyClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "InnerCurrencyClient" to call the correct interceptors.
func RegisterInnerCurrencyHandlerFromEndpoint ¶
func RegisterInnerCurrencyHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterInnerCurrencyHandlerFromEndpoint is same as RegisterInnerCurrencyHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterInnerCurrencyHandlerServer ¶
func RegisterInnerCurrencyHandlerServer(ctx context.Context, mux *runtime.ServeMux, server InnerCurrencyServer) error
RegisterInnerCurrencyHandlerServer registers the http handlers for service InnerCurrency to "mux". UnaryRPC :call InnerCurrencyServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterInnerCurrencyScopeServer ¶
func RegisterInnerCurrencyScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv InnerCurrencyServer) error
Register scoped server.
func RegisterInnerCurrencyServer ¶
func RegisterInnerCurrencyServer(s *grpc.Server, srv InnerCurrencyServer)
func RegisterWithdrawScopeServer ¶
func RegisterWithdrawScopeServer(component string, auth service.Authenticator, impl service.Implementor, srv WithdrawServer) error
Register scoped server.
func RegisterWithdrawServer ¶
func RegisterWithdrawServer(s *grpc.Server, srv WithdrawServer)
Types ¶
type AccountBalance ¶
type AccountBalance struct { Account *uint64 `protobuf:"varint,1,req,name=account" json:"account,omitempty"` Currency *uint64 `protobuf:"varint,2,req,name=currency" json:"currency,omitempty"` Balance *uint64 `protobuf:"varint,3,req,name=balance" json:"balance,omitempty"` Frozen *uint64 `protobuf:"varint,4,req,name=frozen" json:"frozen,omitempty"` Type *AccountType `protobuf:"varint,5,req,name=type,enum=appootb.wallet.AccountType" json:"type,omitempty"` Status *ActiveStatus `protobuf:"varint,6,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,10,req,name=created_at,json=createdAt" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,11,req,name=updated_at,json=updatedAt" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account balance message type.
func (*AccountBalance) Descriptor ¶
func (*AccountBalance) Descriptor() ([]byte, []int)
func (*AccountBalance) GetAccount ¶
func (m *AccountBalance) GetAccount() uint64
func (*AccountBalance) GetBalance ¶
func (m *AccountBalance) GetBalance() uint64
func (*AccountBalance) GetCreatedAt ¶
func (m *AccountBalance) GetCreatedAt() *timestamp.Timestamp
func (*AccountBalance) GetCurrency ¶
func (m *AccountBalance) GetCurrency() uint64
func (*AccountBalance) GetFrozen ¶
func (m *AccountBalance) GetFrozen() uint64
func (*AccountBalance) GetStatus ¶
func (m *AccountBalance) GetStatus() ActiveStatus
func (*AccountBalance) GetType ¶
func (m *AccountBalance) GetType() AccountType
func (*AccountBalance) GetUpdatedAt ¶
func (m *AccountBalance) GetUpdatedAt() *timestamp.Timestamp
func (*AccountBalance) ProtoMessage ¶
func (*AccountBalance) ProtoMessage()
func (*AccountBalance) Reset ¶
func (m *AccountBalance) Reset()
func (*AccountBalance) String ¶
func (m *AccountBalance) String() string
func (*AccountBalance) Validate ¶
func (m *AccountBalance) Validate() error
Validate checks the field values on AccountBalance with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AccountBalance) XXX_DiscardUnknown ¶
func (m *AccountBalance) XXX_DiscardUnknown()
func (*AccountBalance) XXX_Marshal ¶
func (m *AccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountBalance) XXX_Merge ¶
func (m *AccountBalance) XXX_Merge(src proto.Message)
func (*AccountBalance) XXX_Size ¶
func (m *AccountBalance) XXX_Size() int
func (*AccountBalance) XXX_Unmarshal ¶
func (m *AccountBalance) XXX_Unmarshal(b []byte) error
type AccountBalanceValidationError ¶
type AccountBalanceValidationError struct {
// contains filtered or unexported fields
}
AccountBalanceValidationError is the validation error returned by AccountBalance.Validate if the designated constraints aren't met.
func (AccountBalanceValidationError) Cause ¶
func (e AccountBalanceValidationError) Cause() error
Cause function returns cause value.
func (AccountBalanceValidationError) Error ¶
func (e AccountBalanceValidationError) Error() string
Error satisfies the builtin error interface
func (AccountBalanceValidationError) ErrorName ¶
func (e AccountBalanceValidationError) ErrorName() string
ErrorName returns error name.
func (AccountBalanceValidationError) Field ¶
func (e AccountBalanceValidationError) Field() string
Field function returns field value.
func (AccountBalanceValidationError) Key ¶
func (e AccountBalanceValidationError) Key() bool
Key function returns key value.
func (AccountBalanceValidationError) Reason ¶
func (e AccountBalanceValidationError) Reason() string
Reason function returns reason value.
type AccountType ¶
type AccountType int32
Account type enums.
const ( AccountType_ACCOUNT_TYPE_UNSPECIFIED AccountType = 0 AccountType_ACCOUNT_TYPE_NORMAL AccountType = 1 AccountType_ACCOUNT_TYPE_SYSTEM AccountType = 2 )
func (AccountType) Enum ¶
func (x AccountType) Enum() *AccountType
func (AccountType) EnumDescriptor ¶
func (AccountType) EnumDescriptor() ([]byte, []int)
func (AccountType) String ¶
func (x AccountType) String() string
func (*AccountType) UnmarshalJSON ¶
func (x *AccountType) UnmarshalJSON(data []byte) error
type ActionType ¶
type ActionType int32
Action type enums.
const (
ActionType_ACTION_TYPE_UNSPECIFIED ActionType = 0
)
func (ActionType) Enum ¶
func (x ActionType) Enum() *ActionType
func (ActionType) EnumDescriptor ¶
func (ActionType) EnumDescriptor() ([]byte, []int)
func (ActionType) String ¶
func (x ActionType) String() string
func (*ActionType) UnmarshalJSON ¶
func (x *ActionType) UnmarshalJSON(data []byte) error
type ActiveStatus ¶
type ActiveStatus int32
Active status enums.
const (
ActiveStatus_ACTIVE_STATUS_UNSPECIFIED ActiveStatus = 0
)
func (ActiveStatus) Enum ¶
func (x ActiveStatus) Enum() *ActiveStatus
func (ActiveStatus) EnumDescriptor ¶
func (ActiveStatus) EnumDescriptor() ([]byte, []int)
func (ActiveStatus) String ¶
func (x ActiveStatus) String() string
func (*ActiveStatus) UnmarshalJSON ¶
func (x *ActiveStatus) UnmarshalJSON(data []byte) error
type BalanceClient ¶
type BalanceClient interface { // Get balance. Get(ctx context.Context, in *WalletId, opts ...grpc.CallOption) (*AccountBalance, error) }
BalanceClient is the client API for Balance service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBalanceClient ¶
func NewBalanceClient(cc *grpc.ClientConn) BalanceClient
type BalanceServer ¶
type BalanceServer interface { // Get balance. Get(context.Context, *WalletId) (*AccountBalance, error) }
BalanceServer is the server API for Balance service.
type Channel ¶
type Channel int32
Channel enums.
func (Channel) EnumDescriptor ¶
func (*Channel) UnmarshalJSON ¶
type ChargeOption ¶
type ChargeOption struct { UniqueId *uint64 `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"` Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` Avatar *string `protobuf:"bytes,3,opt,name=avatar" json:"avatar,omitempty"` Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"` Currency *uint64 `protobuf:"varint,5,req,name=currency" json:"currency,omitempty"` Amount *uint64 `protobuf:"varint,6,req,name=amount" json:"amount,omitempty"` Price *uint64 `protobuf:"varint,7,req,name=price" json:"price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Charge option.
func (*ChargeOption) Descriptor ¶
func (*ChargeOption) Descriptor() ([]byte, []int)
func (*ChargeOption) GetAmount ¶
func (m *ChargeOption) GetAmount() uint64
func (*ChargeOption) GetAvatar ¶
func (m *ChargeOption) GetAvatar() string
func (*ChargeOption) GetCurrency ¶
func (m *ChargeOption) GetCurrency() uint64
func (*ChargeOption) GetDescription ¶
func (m *ChargeOption) GetDescription() string
func (*ChargeOption) GetName ¶
func (m *ChargeOption) GetName() string
func (*ChargeOption) GetPrice ¶
func (m *ChargeOption) GetPrice() uint64
func (*ChargeOption) GetUniqueId ¶
func (m *ChargeOption) GetUniqueId() uint64
func (*ChargeOption) ProtoMessage ¶
func (*ChargeOption) ProtoMessage()
func (*ChargeOption) Reset ¶
func (m *ChargeOption) Reset()
func (*ChargeOption) String ¶
func (m *ChargeOption) String() string
func (*ChargeOption) Validate ¶
func (m *ChargeOption) Validate() error
Validate checks the field values on ChargeOption with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ChargeOption) XXX_DiscardUnknown ¶
func (m *ChargeOption) XXX_DiscardUnknown()
func (*ChargeOption) XXX_Marshal ¶
func (m *ChargeOption) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeOption) XXX_Merge ¶
func (m *ChargeOption) XXX_Merge(src proto.Message)
func (*ChargeOption) XXX_Size ¶
func (m *ChargeOption) XXX_Size() int
func (*ChargeOption) XXX_Unmarshal ¶
func (m *ChargeOption) XXX_Unmarshal(b []byte) error
type ChargeOptionValidationError ¶
type ChargeOptionValidationError struct {
// contains filtered or unexported fields
}
ChargeOptionValidationError is the validation error returned by ChargeOption.Validate if the designated constraints aren't met.
func (ChargeOptionValidationError) Cause ¶
func (e ChargeOptionValidationError) Cause() error
Cause function returns cause value.
func (ChargeOptionValidationError) Error ¶
func (e ChargeOptionValidationError) Error() string
Error satisfies the builtin error interface
func (ChargeOptionValidationError) ErrorName ¶
func (e ChargeOptionValidationError) ErrorName() string
ErrorName returns error name.
func (ChargeOptionValidationError) Field ¶
func (e ChargeOptionValidationError) Field() string
Field function returns field value.
func (ChargeOptionValidationError) Key ¶
func (e ChargeOptionValidationError) Key() bool
Key function returns key value.
func (ChargeOptionValidationError) Reason ¶
func (e ChargeOptionValidationError) Reason() string
Reason function returns reason value.
type ChargeOptions ¶
type ChargeOptions struct { Options []*ChargeOption `protobuf:"bytes,1,rep,name=options" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Charge options.
func (*ChargeOptions) Descriptor ¶
func (*ChargeOptions) Descriptor() ([]byte, []int)
func (*ChargeOptions) GetOptions ¶
func (m *ChargeOptions) GetOptions() []*ChargeOption
func (*ChargeOptions) ProtoMessage ¶
func (*ChargeOptions) ProtoMessage()
func (*ChargeOptions) Reset ¶
func (m *ChargeOptions) Reset()
func (*ChargeOptions) String ¶
func (m *ChargeOptions) String() string
func (*ChargeOptions) Validate ¶
func (m *ChargeOptions) Validate() error
Validate checks the field values on ChargeOptions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ChargeOptions) XXX_DiscardUnknown ¶
func (m *ChargeOptions) XXX_DiscardUnknown()
func (*ChargeOptions) XXX_Marshal ¶
func (m *ChargeOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeOptions) XXX_Merge ¶
func (m *ChargeOptions) XXX_Merge(src proto.Message)
func (*ChargeOptions) XXX_Size ¶
func (m *ChargeOptions) XXX_Size() int
func (*ChargeOptions) XXX_Unmarshal ¶
func (m *ChargeOptions) XXX_Unmarshal(b []byte) error
type ChargeOptionsValidationError ¶
type ChargeOptionsValidationError struct {
// contains filtered or unexported fields
}
ChargeOptionsValidationError is the validation error returned by ChargeOptions.Validate if the designated constraints aren't met.
func (ChargeOptionsValidationError) Cause ¶
func (e ChargeOptionsValidationError) Cause() error
Cause function returns cause value.
func (ChargeOptionsValidationError) Error ¶
func (e ChargeOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (ChargeOptionsValidationError) ErrorName ¶
func (e ChargeOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (ChargeOptionsValidationError) Field ¶
func (e ChargeOptionsValidationError) Field() string
Field function returns field value.
func (ChargeOptionsValidationError) Key ¶
func (e ChargeOptionsValidationError) Key() bool
Key function returns key value.
func (ChargeOptionsValidationError) Reason ¶
func (e ChargeOptionsValidationError) Reason() string
Reason function returns reason value.
type ChargeOrder ¶
type ChargeOrder struct { OrderId *uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId" json:"order_id,omitempty"` RequestSn *string `protobuf:"bytes,2,req,name=request_sn,json=requestSn" json:"request_sn,omitempty"` Account *uint64 `protobuf:"varint,3,req,name=account" json:"account,omitempty"` Channel *uint64 `protobuf:"varint,4,req,name=channel" json:"channel,omitempty"` Currency *uint64 `protobuf:"varint,5,req,name=currency" json:"currency,omitempty"` Product *string `protobuf:"bytes,6,req,name=product" json:"product,omitempty"` OptionId *uint64 `protobuf:"varint,7,opt,name=option_id,json=optionId" json:"option_id,omitempty"` OptionCount *uint32 `protobuf:"varint,8,opt,name=option_count,json=optionCount" json:"option_count,omitempty"` Price *uint64 `protobuf:"varint,9,opt,name=price" json:"price,omitempty"` PayOrderId *string `protobuf:"bytes,10,opt,name=pay_order_id,json=payOrderId" json:"pay_order_id,omitempty"` ChannelResponse *string `protobuf:"bytes,11,opt,name=channel_response,json=channelResponse" json:"channel_response,omitempty"` MerchantOrderId *string `protobuf:"bytes,12,opt,name=merchant_order_id,json=merchantOrderId" json:"merchant_order_id,omitempty"` Status *OrderStatus `protobuf:"varint,13,opt,name=status,enum=appootb.wallet.OrderStatus" json:"status,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,14,opt,name=created_at,json=createdAt" json:"created_at,omitempty"` SuccessAt *timestamp.Timestamp `protobuf:"bytes,15,opt,name=success_at,json=successAt" json:"success_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Charge order.
func (*ChargeOrder) Descriptor ¶
func (*ChargeOrder) Descriptor() ([]byte, []int)
func (*ChargeOrder) GetAccount ¶
func (m *ChargeOrder) GetAccount() uint64
func (*ChargeOrder) GetChannel ¶
func (m *ChargeOrder) GetChannel() uint64
func (*ChargeOrder) GetChannelResponse ¶
func (m *ChargeOrder) GetChannelResponse() string
func (*ChargeOrder) GetCreatedAt ¶
func (m *ChargeOrder) GetCreatedAt() *timestamp.Timestamp
func (*ChargeOrder) GetCurrency ¶
func (m *ChargeOrder) GetCurrency() uint64
func (*ChargeOrder) GetMerchantOrderId ¶
func (m *ChargeOrder) GetMerchantOrderId() string
func (*ChargeOrder) GetOptionCount ¶
func (m *ChargeOrder) GetOptionCount() uint32
func (*ChargeOrder) GetOptionId ¶
func (m *ChargeOrder) GetOptionId() uint64
func (*ChargeOrder) GetOrderId ¶
func (m *ChargeOrder) GetOrderId() uint64
func (*ChargeOrder) GetPayOrderId ¶
func (m *ChargeOrder) GetPayOrderId() string
func (*ChargeOrder) GetPrice ¶
func (m *ChargeOrder) GetPrice() uint64
func (*ChargeOrder) GetProduct ¶
func (m *ChargeOrder) GetProduct() string
func (*ChargeOrder) GetRequestSn ¶
func (m *ChargeOrder) GetRequestSn() string
func (*ChargeOrder) GetStatus ¶
func (m *ChargeOrder) GetStatus() OrderStatus
func (*ChargeOrder) GetSuccessAt ¶
func (m *ChargeOrder) GetSuccessAt() *timestamp.Timestamp
func (*ChargeOrder) ProtoMessage ¶
func (*ChargeOrder) ProtoMessage()
func (*ChargeOrder) Reset ¶
func (m *ChargeOrder) Reset()
func (*ChargeOrder) String ¶
func (m *ChargeOrder) String() string
func (*ChargeOrder) Validate ¶
func (m *ChargeOrder) Validate() error
Validate checks the field values on ChargeOrder with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ChargeOrder) XXX_DiscardUnknown ¶
func (m *ChargeOrder) XXX_DiscardUnknown()
func (*ChargeOrder) XXX_Marshal ¶
func (m *ChargeOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChargeOrder) XXX_Merge ¶
func (m *ChargeOrder) XXX_Merge(src proto.Message)
func (*ChargeOrder) XXX_Size ¶
func (m *ChargeOrder) XXX_Size() int
func (*ChargeOrder) XXX_Unmarshal ¶
func (m *ChargeOrder) XXX_Unmarshal(b []byte) error
type ChargeOrderValidationError ¶
type ChargeOrderValidationError struct {
// contains filtered or unexported fields
}
ChargeOrderValidationError is the validation error returned by ChargeOrder.Validate if the designated constraints aren't met.
func (ChargeOrderValidationError) Cause ¶
func (e ChargeOrderValidationError) Cause() error
Cause function returns cause value.
func (ChargeOrderValidationError) Error ¶
func (e ChargeOrderValidationError) Error() string
Error satisfies the builtin error interface
func (ChargeOrderValidationError) ErrorName ¶
func (e ChargeOrderValidationError) ErrorName() string
ErrorName returns error name.
func (ChargeOrderValidationError) Field ¶
func (e ChargeOrderValidationError) Field() string
Field function returns field value.
func (ChargeOrderValidationError) Key ¶
func (e ChargeOrderValidationError) Key() bool
Key function returns key value.
func (ChargeOrderValidationError) Reason ¶
func (e ChargeOrderValidationError) Reason() string
Reason function returns reason value.
type Currencies ¶
type Currencies struct { List []*Currency `protobuf:"bytes,1,rep,name=list" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual currencies.
func (*Currencies) Descriptor ¶
func (*Currencies) Descriptor() ([]byte, []int)
func (*Currencies) GetList ¶
func (m *Currencies) GetList() []*Currency
func (*Currencies) ProtoMessage ¶
func (*Currencies) ProtoMessage()
func (*Currencies) Reset ¶
func (m *Currencies) Reset()
func (*Currencies) String ¶
func (m *Currencies) String() string
func (*Currencies) Validate ¶
func (m *Currencies) Validate() error
Validate checks the field values on Currencies with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Currencies) XXX_DiscardUnknown ¶
func (m *Currencies) XXX_DiscardUnknown()
func (*Currencies) XXX_Marshal ¶
func (m *Currencies) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Currencies) XXX_Merge ¶
func (m *Currencies) XXX_Merge(src proto.Message)
func (*Currencies) XXX_Size ¶
func (m *Currencies) XXX_Size() int
func (*Currencies) XXX_Unmarshal ¶
func (m *Currencies) XXX_Unmarshal(b []byte) error
type CurrenciesValidationError ¶
type CurrenciesValidationError struct {
// contains filtered or unexported fields
}
CurrenciesValidationError is the validation error returned by Currencies.Validate if the designated constraints aren't met.
func (CurrenciesValidationError) Cause ¶
func (e CurrenciesValidationError) Cause() error
Cause function returns cause value.
func (CurrenciesValidationError) Error ¶
func (e CurrenciesValidationError) Error() string
Error satisfies the builtin error interface
func (CurrenciesValidationError) ErrorName ¶
func (e CurrenciesValidationError) ErrorName() string
ErrorName returns error name.
func (CurrenciesValidationError) Field ¶
func (e CurrenciesValidationError) Field() string
Field function returns field value.
func (CurrenciesValidationError) Key ¶
func (e CurrenciesValidationError) Key() bool
Key function returns key value.
func (CurrenciesValidationError) Reason ¶
func (e CurrenciesValidationError) Reason() string
Reason function returns reason value.
type Currency ¶
type Currency struct { UniqueId *uint64 `protobuf:"varint,1,req,name=unique_id,json=uniqueId" json:"unique_id,omitempty"` Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"` Description *string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` Metric *string `protobuf:"bytes,4,opt,name=metric" json:"metric,omitempty"` ExchangeRate *float32 `protobuf:"fixed32,5,opt,name=exchange_rate,json=exchangeRate" json:"exchange_rate,omitempty"` Status *ActiveStatus `protobuf:"varint,6,opt,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual currency.
func (*Currency) Descriptor ¶
func (*Currency) GetDescription ¶
func (*Currency) GetExchangeRate ¶
func (*Currency) GetStatus ¶
func (m *Currency) GetStatus() ActiveStatus
func (*Currency) GetUniqueId ¶
func (*Currency) ProtoMessage ¶
func (*Currency) ProtoMessage()
func (*Currency) Validate ¶
Validate checks the field values on Currency with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Currency) XXX_DiscardUnknown ¶
func (m *Currency) XXX_DiscardUnknown()
func (*Currency) XXX_Marshal ¶
func (*Currency) XXX_Unmarshal ¶
type CurrencyChargeConfig ¶
type CurrencyChargeConfig struct { Operate *CurrencyOperateConfig `protobuf:"bytes,1,req,name=operate" json:"operate,omitempty"` RefundStatus *ActiveStatus `protobuf:"varint,2,req,name=refund_status,json=refundStatus,enum=appootb.wallet.ActiveStatus" json:"refund_status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual
func (*CurrencyChargeConfig) Descriptor ¶
func (*CurrencyChargeConfig) Descriptor() ([]byte, []int)
func (*CurrencyChargeConfig) GetOperate ¶
func (m *CurrencyChargeConfig) GetOperate() *CurrencyOperateConfig
func (*CurrencyChargeConfig) GetRefundStatus ¶
func (m *CurrencyChargeConfig) GetRefundStatus() ActiveStatus
func (*CurrencyChargeConfig) ProtoMessage ¶
func (*CurrencyChargeConfig) ProtoMessage()
func (*CurrencyChargeConfig) Reset ¶
func (m *CurrencyChargeConfig) Reset()
func (*CurrencyChargeConfig) String ¶
func (m *CurrencyChargeConfig) String() string
func (*CurrencyChargeConfig) Validate ¶
func (m *CurrencyChargeConfig) Validate() error
Validate checks the field values on CurrencyChargeConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CurrencyChargeConfig) XXX_DiscardUnknown ¶
func (m *CurrencyChargeConfig) XXX_DiscardUnknown()
func (*CurrencyChargeConfig) XXX_Marshal ¶
func (m *CurrencyChargeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyChargeConfig) XXX_Merge ¶
func (m *CurrencyChargeConfig) XXX_Merge(src proto.Message)
func (*CurrencyChargeConfig) XXX_Size ¶
func (m *CurrencyChargeConfig) XXX_Size() int
func (*CurrencyChargeConfig) XXX_Unmarshal ¶
func (m *CurrencyChargeConfig) XXX_Unmarshal(b []byte) error
type CurrencyChargeConfigValidationError ¶
type CurrencyChargeConfigValidationError struct {
// contains filtered or unexported fields
}
CurrencyChargeConfigValidationError is the validation error returned by CurrencyChargeConfig.Validate if the designated constraints aren't met.
func (CurrencyChargeConfigValidationError) Cause ¶
func (e CurrencyChargeConfigValidationError) Cause() error
Cause function returns cause value.
func (CurrencyChargeConfigValidationError) Error ¶
func (e CurrencyChargeConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyChargeConfigValidationError) ErrorName ¶
func (e CurrencyChargeConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyChargeConfigValidationError) Field ¶
func (e CurrencyChargeConfigValidationError) Field() string
Field function returns field value.
func (CurrencyChargeConfigValidationError) Key ¶
func (e CurrencyChargeConfigValidationError) Key() bool
Key function returns key value.
func (CurrencyChargeConfigValidationError) Reason ¶
func (e CurrencyChargeConfigValidationError) Reason() string
Reason function returns reason value.
type CurrencyConfig ¶
type CurrencyConfig struct { SourceCurrency *uint64 `protobuf:"varint,1,req,name=source_currency,json=sourceCurrency" json:"source_currency,omitempty"` Consume map[uint64]*CurrencyOperateConfig `` /* 135-byte string literal not displayed */ Charge map[uint64]*CurrencyChargeConfig `` /* 133-byte string literal not displayed */ Withdraw map[uint64]*CurrencyWithdrawConfig `` /* 137-byte string literal not displayed */ Exchange map[uint64]*CurrencyExchangeConfig `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual currency config.
func (*CurrencyConfig) Descriptor ¶
func (*CurrencyConfig) Descriptor() ([]byte, []int)
func (*CurrencyConfig) GetCharge ¶
func (m *CurrencyConfig) GetCharge() map[uint64]*CurrencyChargeConfig
func (*CurrencyConfig) GetConsume ¶
func (m *CurrencyConfig) GetConsume() map[uint64]*CurrencyOperateConfig
func (*CurrencyConfig) GetExchange ¶
func (m *CurrencyConfig) GetExchange() map[uint64]*CurrencyExchangeConfig
func (*CurrencyConfig) GetSourceCurrency ¶
func (m *CurrencyConfig) GetSourceCurrency() uint64
func (*CurrencyConfig) GetWithdraw ¶
func (m *CurrencyConfig) GetWithdraw() map[uint64]*CurrencyWithdrawConfig
func (*CurrencyConfig) ProtoMessage ¶
func (*CurrencyConfig) ProtoMessage()
func (*CurrencyConfig) Reset ¶
func (m *CurrencyConfig) Reset()
func (*CurrencyConfig) String ¶
func (m *CurrencyConfig) String() string
func (*CurrencyConfig) Validate ¶
func (m *CurrencyConfig) Validate() error
Validate checks the field values on CurrencyConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CurrencyConfig) XXX_DiscardUnknown ¶
func (m *CurrencyConfig) XXX_DiscardUnknown()
func (*CurrencyConfig) XXX_Marshal ¶
func (m *CurrencyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyConfig) XXX_Merge ¶
func (m *CurrencyConfig) XXX_Merge(src proto.Message)
func (*CurrencyConfig) XXX_Size ¶
func (m *CurrencyConfig) XXX_Size() int
func (*CurrencyConfig) XXX_Unmarshal ¶
func (m *CurrencyConfig) XXX_Unmarshal(b []byte) error
type CurrencyConfigValidationError ¶
type CurrencyConfigValidationError struct {
// contains filtered or unexported fields
}
CurrencyConfigValidationError is the validation error returned by CurrencyConfig.Validate if the designated constraints aren't met.
func (CurrencyConfigValidationError) Cause ¶
func (e CurrencyConfigValidationError) Cause() error
Cause function returns cause value.
func (CurrencyConfigValidationError) Error ¶
func (e CurrencyConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyConfigValidationError) ErrorName ¶
func (e CurrencyConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyConfigValidationError) Field ¶
func (e CurrencyConfigValidationError) Field() string
Field function returns field value.
func (CurrencyConfigValidationError) Key ¶
func (e CurrencyConfigValidationError) Key() bool
Key function returns key value.
func (CurrencyConfigValidationError) Reason ¶
func (e CurrencyConfigValidationError) Reason() string
Reason function returns reason value.
type CurrencyExchangeConfig ¶
type CurrencyExchangeConfig struct { TargetCurrency *uint64 `protobuf:"varint,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"` DiscountRate *uint64 `protobuf:"varint,2,req,name=discount_rate,json=discountRate" json:"discount_rate,omitempty"` ExchangeRate *uint64 `protobuf:"varint,3,req,name=exchange_rate,json=exchangeRate" json:"exchange_rate,omitempty"` SystemBudgetId *string `protobuf:"bytes,4,req,name=system_budget_id,json=systemBudgetId" json:"system_budget_id,omitempty"` DiscountAction *ActionType `` /* 128-byte string literal not displayed */ Status *ActiveStatus `protobuf:"varint,6,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual currency exchange config.
func (*CurrencyExchangeConfig) Descriptor ¶
func (*CurrencyExchangeConfig) Descriptor() ([]byte, []int)
func (*CurrencyExchangeConfig) GetDiscountAction ¶
func (m *CurrencyExchangeConfig) GetDiscountAction() ActionType
func (*CurrencyExchangeConfig) GetDiscountRate ¶
func (m *CurrencyExchangeConfig) GetDiscountRate() uint64
func (*CurrencyExchangeConfig) GetExchangeRate ¶
func (m *CurrencyExchangeConfig) GetExchangeRate() uint64
func (*CurrencyExchangeConfig) GetStatus ¶
func (m *CurrencyExchangeConfig) GetStatus() ActiveStatus
func (*CurrencyExchangeConfig) GetSystemBudgetId ¶
func (m *CurrencyExchangeConfig) GetSystemBudgetId() string
func (*CurrencyExchangeConfig) GetTargetCurrency ¶
func (m *CurrencyExchangeConfig) GetTargetCurrency() uint64
func (*CurrencyExchangeConfig) ProtoMessage ¶
func (*CurrencyExchangeConfig) ProtoMessage()
func (*CurrencyExchangeConfig) Reset ¶
func (m *CurrencyExchangeConfig) Reset()
func (*CurrencyExchangeConfig) String ¶
func (m *CurrencyExchangeConfig) String() string
func (*CurrencyExchangeConfig) Validate ¶
func (m *CurrencyExchangeConfig) Validate() error
Validate checks the field values on CurrencyExchangeConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CurrencyExchangeConfig) XXX_DiscardUnknown ¶
func (m *CurrencyExchangeConfig) XXX_DiscardUnknown()
func (*CurrencyExchangeConfig) XXX_Marshal ¶
func (m *CurrencyExchangeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyExchangeConfig) XXX_Merge ¶
func (m *CurrencyExchangeConfig) XXX_Merge(src proto.Message)
func (*CurrencyExchangeConfig) XXX_Size ¶
func (m *CurrencyExchangeConfig) XXX_Size() int
func (*CurrencyExchangeConfig) XXX_Unmarshal ¶
func (m *CurrencyExchangeConfig) XXX_Unmarshal(b []byte) error
type CurrencyExchangeConfigValidationError ¶
type CurrencyExchangeConfigValidationError struct {
// contains filtered or unexported fields
}
CurrencyExchangeConfigValidationError is the validation error returned by CurrencyExchangeConfig.Validate if the designated constraints aren't met.
func (CurrencyExchangeConfigValidationError) Cause ¶
func (e CurrencyExchangeConfigValidationError) Cause() error
Cause function returns cause value.
func (CurrencyExchangeConfigValidationError) Error ¶
func (e CurrencyExchangeConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyExchangeConfigValidationError) ErrorName ¶
func (e CurrencyExchangeConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyExchangeConfigValidationError) Field ¶
func (e CurrencyExchangeConfigValidationError) Field() string
Field function returns field value.
func (CurrencyExchangeConfigValidationError) Key ¶
func (e CurrencyExchangeConfigValidationError) Key() bool
Key function returns key value.
func (CurrencyExchangeConfigValidationError) Reason ¶
func (e CurrencyExchangeConfigValidationError) Reason() string
Reason function returns reason value.
type CurrencyOperateConfig ¶
type CurrencyOperateConfig struct { TargetCurrency *uint64 `protobuf:"varint,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"` Description *string `protobuf:"bytes,2,req,name=description" json:"description,omitempty"` SourceBudgetId *uint64 `protobuf:"varint,3,req,name=source_budget_id,json=sourceBudgetId" json:"source_budget_id,omitempty"` TargetBudgetId *uint64 `protobuf:"varint,4,req,name=target_budget_id,json=targetBudgetId" json:"target_budget_id,omitempty"` SourceSubject *SubjectType `` /* 126-byte string literal not displayed */ TargetSubject *SubjectType `` /* 126-byte string literal not displayed */ SourceAction *ActionType `protobuf:"varint,7,req,name=source_action,json=sourceAction,enum=appootb.wallet.ActionType" json:"source_action,omitempty"` TargetAction *ActionType `protobuf:"varint,8,req,name=target_action,json=targetAction,enum=appootb.wallet.ActionType" json:"target_action,omitempty"` SourceJournal *JournalType `` /* 126-byte string literal not displayed */ TargetJournal *JournalType `` /* 127-byte string literal not displayed */ Status *ActiveStatus `protobuf:"varint,11,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Virtual currency operation config.
func (*CurrencyOperateConfig) Descriptor ¶
func (*CurrencyOperateConfig) Descriptor() ([]byte, []int)
func (*CurrencyOperateConfig) GetDescription ¶
func (m *CurrencyOperateConfig) GetDescription() string
func (*CurrencyOperateConfig) GetSourceAction ¶
func (m *CurrencyOperateConfig) GetSourceAction() ActionType
func (*CurrencyOperateConfig) GetSourceBudgetId ¶
func (m *CurrencyOperateConfig) GetSourceBudgetId() uint64
func (*CurrencyOperateConfig) GetSourceJournal ¶
func (m *CurrencyOperateConfig) GetSourceJournal() JournalType
func (*CurrencyOperateConfig) GetSourceSubject ¶
func (m *CurrencyOperateConfig) GetSourceSubject() SubjectType
func (*CurrencyOperateConfig) GetStatus ¶
func (m *CurrencyOperateConfig) GetStatus() ActiveStatus
func (*CurrencyOperateConfig) GetTargetAction ¶
func (m *CurrencyOperateConfig) GetTargetAction() ActionType
func (*CurrencyOperateConfig) GetTargetBudgetId ¶
func (m *CurrencyOperateConfig) GetTargetBudgetId() uint64
func (*CurrencyOperateConfig) GetTargetCurrency ¶
func (m *CurrencyOperateConfig) GetTargetCurrency() uint64
func (*CurrencyOperateConfig) GetTargetJournal ¶
func (m *CurrencyOperateConfig) GetTargetJournal() JournalType
func (*CurrencyOperateConfig) GetTargetSubject ¶
func (m *CurrencyOperateConfig) GetTargetSubject() SubjectType
func (*CurrencyOperateConfig) ProtoMessage ¶
func (*CurrencyOperateConfig) ProtoMessage()
func (*CurrencyOperateConfig) Reset ¶
func (m *CurrencyOperateConfig) Reset()
func (*CurrencyOperateConfig) String ¶
func (m *CurrencyOperateConfig) String() string
func (*CurrencyOperateConfig) Validate ¶
func (m *CurrencyOperateConfig) Validate() error
Validate checks the field values on CurrencyOperateConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CurrencyOperateConfig) XXX_DiscardUnknown ¶
func (m *CurrencyOperateConfig) XXX_DiscardUnknown()
func (*CurrencyOperateConfig) XXX_Marshal ¶
func (m *CurrencyOperateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyOperateConfig) XXX_Merge ¶
func (m *CurrencyOperateConfig) XXX_Merge(src proto.Message)
func (*CurrencyOperateConfig) XXX_Size ¶
func (m *CurrencyOperateConfig) XXX_Size() int
func (*CurrencyOperateConfig) XXX_Unmarshal ¶
func (m *CurrencyOperateConfig) XXX_Unmarshal(b []byte) error
type CurrencyOperateConfigValidationError ¶
type CurrencyOperateConfigValidationError struct {
// contains filtered or unexported fields
}
CurrencyOperateConfigValidationError is the validation error returned by CurrencyOperateConfig.Validate if the designated constraints aren't met.
func (CurrencyOperateConfigValidationError) Cause ¶
func (e CurrencyOperateConfigValidationError) Cause() error
Cause function returns cause value.
func (CurrencyOperateConfigValidationError) Error ¶
func (e CurrencyOperateConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyOperateConfigValidationError) ErrorName ¶
func (e CurrencyOperateConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyOperateConfigValidationError) Field ¶
func (e CurrencyOperateConfigValidationError) Field() string
Field function returns field value.
func (CurrencyOperateConfigValidationError) Key ¶
func (e CurrencyOperateConfigValidationError) Key() bool
Key function returns key value.
func (CurrencyOperateConfigValidationError) Reason ¶
func (e CurrencyOperateConfigValidationError) Reason() string
Reason function returns reason value.
type CurrencyValidationError ¶
type CurrencyValidationError struct {
// contains filtered or unexported fields
}
CurrencyValidationError is the validation error returned by Currency.Validate if the designated constraints aren't met.
func (CurrencyValidationError) Cause ¶
func (e CurrencyValidationError) Cause() error
Cause function returns cause value.
func (CurrencyValidationError) Error ¶
func (e CurrencyValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyValidationError) ErrorName ¶
func (e CurrencyValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyValidationError) Field ¶
func (e CurrencyValidationError) Field() string
Field function returns field value.
func (CurrencyValidationError) Key ¶
func (e CurrencyValidationError) Key() bool
Key function returns key value.
func (CurrencyValidationError) Reason ¶
func (e CurrencyValidationError) Reason() string
Reason function returns reason value.
type CurrencyWithdrawConfig ¶
type CurrencyWithdrawConfig struct { TargetCurrency *string `protobuf:"bytes,1,req,name=target_currency,json=targetCurrency" json:"target_currency,omitempty"` PayerName *string `protobuf:"bytes,2,req,name=payer_name,json=payerName" json:"payer_name,omitempty"` PayerMessage *string `protobuf:"bytes,3,req,name=payer_message,json=payerMessage" json:"payer_message,omitempty"` TaxRate *uint64 `protobuf:"varint,4,req,name=tax_rate,json=taxRate" json:"tax_rate,omitempty"` FeeRate *uint64 `protobuf:"varint,5,req,name=fee_rate,json=feeRate" json:"fee_rate,omitempty"` TaxBudgetId *string `protobuf:"bytes,6,req,name=tax_budget_id,json=taxBudgetId" json:"tax_budget_id,omitempty"` FeeBudgetId *string `protobuf:"bytes,7,req,name=fee_budget_id,json=feeBudgetId" json:"fee_budget_id,omitempty"` FeeAction *ActionType `protobuf:"varint,8,req,name=fee_action,json=feeAction,enum=appootb.wallet.ActionType" json:"fee_action,omitempty"` TaxAction *ActionType `protobuf:"varint,9,req,name=tax_action,json=taxAction,enum=appootb.wallet.ActionType" json:"tax_action,omitempty"` Status *ActiveStatus `protobuf:"varint,10,req,name=status,enum=appootb.wallet.ActiveStatus" json:"status,omitempty"` Channels map[string]string `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CurrencyWithdrawConfig) Descriptor ¶
func (*CurrencyWithdrawConfig) Descriptor() ([]byte, []int)
func (*CurrencyWithdrawConfig) GetChannels ¶
func (m *CurrencyWithdrawConfig) GetChannels() map[string]string
func (*CurrencyWithdrawConfig) GetFeeAction ¶
func (m *CurrencyWithdrawConfig) GetFeeAction() ActionType
func (*CurrencyWithdrawConfig) GetFeeBudgetId ¶
func (m *CurrencyWithdrawConfig) GetFeeBudgetId() string
func (*CurrencyWithdrawConfig) GetFeeRate ¶
func (m *CurrencyWithdrawConfig) GetFeeRate() uint64
func (*CurrencyWithdrawConfig) GetPayerMessage ¶
func (m *CurrencyWithdrawConfig) GetPayerMessage() string
func (*CurrencyWithdrawConfig) GetPayerName ¶
func (m *CurrencyWithdrawConfig) GetPayerName() string
func (*CurrencyWithdrawConfig) GetStatus ¶
func (m *CurrencyWithdrawConfig) GetStatus() ActiveStatus
func (*CurrencyWithdrawConfig) GetTargetCurrency ¶
func (m *CurrencyWithdrawConfig) GetTargetCurrency() string
func (*CurrencyWithdrawConfig) GetTaxAction ¶
func (m *CurrencyWithdrawConfig) GetTaxAction() ActionType
func (*CurrencyWithdrawConfig) GetTaxBudgetId ¶
func (m *CurrencyWithdrawConfig) GetTaxBudgetId() string
func (*CurrencyWithdrawConfig) GetTaxRate ¶
func (m *CurrencyWithdrawConfig) GetTaxRate() uint64
func (*CurrencyWithdrawConfig) ProtoMessage ¶
func (*CurrencyWithdrawConfig) ProtoMessage()
func (*CurrencyWithdrawConfig) Reset ¶
func (m *CurrencyWithdrawConfig) Reset()
func (*CurrencyWithdrawConfig) String ¶
func (m *CurrencyWithdrawConfig) String() string
func (*CurrencyWithdrawConfig) Validate ¶
func (m *CurrencyWithdrawConfig) Validate() error
Validate checks the field values on CurrencyWithdrawConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CurrencyWithdrawConfig) XXX_DiscardUnknown ¶
func (m *CurrencyWithdrawConfig) XXX_DiscardUnknown()
func (*CurrencyWithdrawConfig) XXX_Marshal ¶
func (m *CurrencyWithdrawConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrencyWithdrawConfig) XXX_Merge ¶
func (m *CurrencyWithdrawConfig) XXX_Merge(src proto.Message)
func (*CurrencyWithdrawConfig) XXX_Size ¶
func (m *CurrencyWithdrawConfig) XXX_Size() int
func (*CurrencyWithdrawConfig) XXX_Unmarshal ¶
func (m *CurrencyWithdrawConfig) XXX_Unmarshal(b []byte) error
type CurrencyWithdrawConfigValidationError ¶
type CurrencyWithdrawConfigValidationError struct {
// contains filtered or unexported fields
}
CurrencyWithdrawConfigValidationError is the validation error returned by CurrencyWithdrawConfig.Validate if the designated constraints aren't met.
func (CurrencyWithdrawConfigValidationError) Cause ¶
func (e CurrencyWithdrawConfigValidationError) Cause() error
Cause function returns cause value.
func (CurrencyWithdrawConfigValidationError) Error ¶
func (e CurrencyWithdrawConfigValidationError) Error() string
Error satisfies the builtin error interface
func (CurrencyWithdrawConfigValidationError) ErrorName ¶
func (e CurrencyWithdrawConfigValidationError) ErrorName() string
ErrorName returns error name.
func (CurrencyWithdrawConfigValidationError) Field ¶
func (e CurrencyWithdrawConfigValidationError) Field() string
Field function returns field value.
func (CurrencyWithdrawConfigValidationError) Key ¶
func (e CurrencyWithdrawConfigValidationError) Key() bool
Key function returns key value.
func (CurrencyWithdrawConfigValidationError) Reason ¶
func (e CurrencyWithdrawConfigValidationError) Reason() string
Reason function returns reason value.
type DepositClient ¶
type DepositClient interface { // Get charge options. GetOptions(ctx context.Context, in *ChargeOption, opts ...grpc.CallOption) (*ChargeOptions, error) // Charge request. Charge(ctx context.Context, in *ChargeOrder, opts ...grpc.CallOption) (*ChargeOrder, error) // Confirm charge order. Confirm(ctx context.Context, in *ChargeOrder, opts ...grpc.CallOption) (*ChargeOrder, error) }
DepositClient is the client API for Deposit service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDepositClient ¶
func NewDepositClient(cc *grpc.ClientConn) DepositClient
type DepositServer ¶
type DepositServer interface { // Get charge options. GetOptions(context.Context, *ChargeOption) (*ChargeOptions, error) // Charge request. Charge(context.Context, *ChargeOrder) (*ChargeOrder, error) // Confirm charge order. Confirm(context.Context, *ChargeOrder) (*ChargeOrder, error) }
DepositServer is the server API for Deposit service.
type ExchangeClient ¶
type ExchangeClient interface { }
ExchangeClient is the client API for Exchange service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExchangeClient ¶
func NewExchangeClient(cc *grpc.ClientConn) ExchangeClient
type ExchangeServer ¶
type ExchangeServer interface { }
ExchangeServer is the server API for Exchange service.
type InnerBudgetClient ¶
type InnerBudgetClient interface { }
InnerBudgetClient is the client API for InnerBudget service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerBudgetClient ¶
func NewInnerBudgetClient(cc *grpc.ClientConn) InnerBudgetClient
type InnerBudgetServer ¶
type InnerBudgetServer interface { }
InnerBudgetServer is the server API for InnerBudget service.
type InnerCurrencyClient ¶
type InnerCurrencyClient interface { // Get virtual currency of specified ID. Get(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*Currency, error) // Get all virtual currencies. GetAll(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Currencies, error) // Add new virtual currency. Add(ctx context.Context, in *Currency, opts ...grpc.CallOption) (*Currency, error) // Update virtual currency. Update(ctx context.Context, in *Currency, opts ...grpc.CallOption) (*Currency, error) // Get specified virtual currency config. GetConfig(ctx context.Context, in *common.UniqueId, opts ...grpc.CallOption) (*CurrencyConfig, error) // Add virtual currency config. AddConfig(ctx context.Context, in *CurrencyConfig, opts ...grpc.CallOption) (*CurrencyConfig, error) // Update specified virtual currency config. UpdateConfig(ctx context.Context, in *CurrencyConfig, opts ...grpc.CallOption) (*CurrencyConfig, error) }
InnerCurrencyClient is the client API for InnerCurrency service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewInnerCurrencyClient ¶
func NewInnerCurrencyClient(cc *grpc.ClientConn) InnerCurrencyClient
type InnerCurrencyServer ¶
type InnerCurrencyServer interface { // Get virtual currency of specified ID. Get(context.Context, *common.UniqueId) (*Currency, error) // Get all virtual currencies. GetAll(context.Context, *empty.Empty) (*Currencies, error) // Add new virtual currency. Add(context.Context, *Currency) (*Currency, error) // Update virtual currency. Update(context.Context, *Currency) (*Currency, error) // Get specified virtual currency config. GetConfig(context.Context, *common.UniqueId) (*CurrencyConfig, error) // Add virtual currency config. AddConfig(context.Context, *CurrencyConfig) (*CurrencyConfig, error) // Update specified virtual currency config. UpdateConfig(context.Context, *CurrencyConfig) (*CurrencyConfig, error) }
InnerCurrencyServer is the server API for InnerCurrency service.
type JournalType ¶
type JournalType int32
Journal type enums.
const (
JournalType_JOURNAL_TYPE_UNSPECIFIED JournalType = 0
)
func (JournalType) Enum ¶
func (x JournalType) Enum() *JournalType
func (JournalType) EnumDescriptor ¶
func (JournalType) EnumDescriptor() ([]byte, []int)
func (JournalType) String ¶
func (x JournalType) String() string
func (*JournalType) UnmarshalJSON ¶
func (x *JournalType) UnmarshalJSON(data []byte) error
type OrderStatus ¶
type OrderStatus int32
Order status enums.
const (
OrderStatus_ORDER_STATUS_UNSPECIFIED OrderStatus = 0
)
func (OrderStatus) Enum ¶
func (x OrderStatus) Enum() *OrderStatus
func (OrderStatus) EnumDescriptor ¶
func (OrderStatus) EnumDescriptor() ([]byte, []int)
func (OrderStatus) String ¶
func (x OrderStatus) String() string
func (*OrderStatus) UnmarshalJSON ¶
func (x *OrderStatus) UnmarshalJSON(data []byte) error
type SubjectType ¶
type SubjectType int32
Subject type enums.
const (
SubjectType_SUBJECT_TYPE_UNSPECIFIED SubjectType = 0
)
func (SubjectType) Enum ¶
func (x SubjectType) Enum() *SubjectType
func (SubjectType) EnumDescriptor ¶
func (SubjectType) EnumDescriptor() ([]byte, []int)
func (SubjectType) String ¶
func (x SubjectType) String() string
func (*SubjectType) UnmarshalJSON ¶
func (x *SubjectType) UnmarshalJSON(data []byte) error
type UnimplementedBalanceServer ¶
type UnimplementedBalanceServer struct { }
UnimplementedBalanceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBalanceServer) Get ¶
func (*UnimplementedBalanceServer) Get(ctx context.Context, req *WalletId) (*AccountBalance, error)
type UnimplementedDepositServer ¶
type UnimplementedDepositServer struct { }
UnimplementedDepositServer can be embedded to have forward compatible implementations.
func (*UnimplementedDepositServer) Charge ¶
func (*UnimplementedDepositServer) Charge(ctx context.Context, req *ChargeOrder) (*ChargeOrder, error)
func (*UnimplementedDepositServer) Confirm ¶
func (*UnimplementedDepositServer) Confirm(ctx context.Context, req *ChargeOrder) (*ChargeOrder, error)
func (*UnimplementedDepositServer) GetOptions ¶
func (*UnimplementedDepositServer) GetOptions(ctx context.Context, req *ChargeOption) (*ChargeOptions, error)
type UnimplementedExchangeServer ¶
type UnimplementedExchangeServer struct { }
UnimplementedExchangeServer can be embedded to have forward compatible implementations.
type UnimplementedInnerBudgetServer ¶
type UnimplementedInnerBudgetServer struct { }
UnimplementedInnerBudgetServer can be embedded to have forward compatible implementations.
type UnimplementedInnerCurrencyServer ¶
type UnimplementedInnerCurrencyServer struct { }
UnimplementedInnerCurrencyServer can be embedded to have forward compatible implementations.
func (*UnimplementedInnerCurrencyServer) AddConfig ¶
func (*UnimplementedInnerCurrencyServer) AddConfig(ctx context.Context, req *CurrencyConfig) (*CurrencyConfig, error)
func (*UnimplementedInnerCurrencyServer) GetAll ¶
func (*UnimplementedInnerCurrencyServer) GetAll(ctx context.Context, req *empty.Empty) (*Currencies, error)
func (*UnimplementedInnerCurrencyServer) GetConfig ¶
func (*UnimplementedInnerCurrencyServer) GetConfig(ctx context.Context, req *common.UniqueId) (*CurrencyConfig, error)
func (*UnimplementedInnerCurrencyServer) UpdateConfig ¶
func (*UnimplementedInnerCurrencyServer) UpdateConfig(ctx context.Context, req *CurrencyConfig) (*CurrencyConfig, error)
type UnimplementedWithdrawServer ¶
type UnimplementedWithdrawServer struct { }
UnimplementedWithdrawServer can be embedded to have forward compatible implementations.
type WalletId ¶
type WalletId struct { Account *uint64 `protobuf:"varint,1,req,name=account" json:"account,omitempty"` Currency *uint64 `protobuf:"varint,2,opt,name=currency" json:"currency,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Account wallet ID.
func (*WalletId) Descriptor ¶
func (*WalletId) GetAccount ¶
func (*WalletId) GetCurrency ¶
func (*WalletId) ProtoMessage ¶
func (*WalletId) ProtoMessage()
func (*WalletId) Validate ¶
Validate checks the field values on WalletId with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*WalletId) XXX_DiscardUnknown ¶
func (m *WalletId) XXX_DiscardUnknown()
func (*WalletId) XXX_Marshal ¶
func (*WalletId) XXX_Unmarshal ¶
type WalletIdValidationError ¶
type WalletIdValidationError struct {
// contains filtered or unexported fields
}
WalletIdValidationError is the validation error returned by WalletId.Validate if the designated constraints aren't met.
func (WalletIdValidationError) Cause ¶
func (e WalletIdValidationError) Cause() error
Cause function returns cause value.
func (WalletIdValidationError) Error ¶
func (e WalletIdValidationError) Error() string
Error satisfies the builtin error interface
func (WalletIdValidationError) ErrorName ¶
func (e WalletIdValidationError) ErrorName() string
ErrorName returns error name.
func (WalletIdValidationError) Field ¶
func (e WalletIdValidationError) Field() string
Field function returns field value.
func (WalletIdValidationError) Key ¶
func (e WalletIdValidationError) Key() bool
Key function returns key value.
func (WalletIdValidationError) Reason ¶
func (e WalletIdValidationError) Reason() string
Reason function returns reason value.
type WithdrawClient ¶
type WithdrawClient interface { }
WithdrawClient is the client API for Withdraw service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWithdrawClient ¶
func NewWithdrawClient(cc *grpc.ClientConn) WithdrawClient
type WithdrawServer ¶
type WithdrawServer interface { }
WithdrawServer is the server API for Withdraw service.
Source Files ¶
- balance.pb.auth.go
- balance.pb.go
- balance.pb.gw.go
- balance.pb.validate.go
- deposit.pb.auth.go
- deposit.pb.go
- deposit.pb.gw.go
- deposit.pb.validate.go
- exchange.pb.auth.go
- exchange.pb.go
- exchange.pb.validate.go
- include.pb.auth.go
- include.pb.go
- include.pb.validate.go
- inner_budget.pb.auth.go
- inner_budget.pb.go
- inner_budget.pb.validate.go
- inner_currency.pb.auth.go
- inner_currency.pb.go
- inner_currency.pb.gw.go
- inner_currency.pb.validate.go
- withdraw.pb.auth.go
- withdraw.pb.go
- withdraw.pb.validate.go