Documentation ¶
Overview ¶
Package api_v1 is a generated protocol buffer package.
It is generated from these files:
api.proto
It has these top-level messages:
ActualState ErrorResponse TransferOK Batch TransferRequest TransferResponse Limit Setting AccountSettingsRequest AccountSettingsResponse UpdateSettingsRequest UpdateSettingsResponse UpdateSettingsOK PrevHashRequest PrevHashResponse HistoryRequest HistoryResponse Txn StatsRequest StatsResponse AccountsRequest AccountsResponse
fields.go
validate.go
Index ¶
- Variables
- func AddAPIHandlers(mux graceful.Handlerer, srv APIInterface, c graceful.Codec) graceful.Handlerer
- func NewAPIHandler(srv APIInterface, c graceful.Codec) graceful.Handlerer
- type APIHTTPClient
- func (cl APIHTTPClient) GetAccountSettings(ctx context.Context, args *AccountSettingsRequest) (*AccountSettingsResponse, error)
- func (cl APIHTTPClient) GetAccounts(ctx context.Context, args *AccountsRequest) (*AccountsResponse, error)
- func (cl APIHTTPClient) GetHistory(ctx context.Context, args *HistoryRequest) (*HistoryResponse, error)
- func (cl APIHTTPClient) GetPrevHash(ctx context.Context, args *PrevHashRequest) (*PrevHashResponse, error)
- func (cl APIHTTPClient) GetStats(ctx context.Context, args *StatsRequest) (*StatsResponse, error)
- func (cl APIHTTPClient) Transfer(ctx context.Context, args *TransferRequest) (*TransferResponse, error)
- func (cl APIHTTPClient) UpdateSettings(ctx context.Context, args *UpdateSettingsRequest) (*UpdateSettingsResponse, error)
- type APIInterface
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (a *Account) Marshal() ([]byte, error)
- func (a *Account) MarshalJSON() ([]byte, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (a *Account) Size() int
- func (m *Account) String() string
- func (a *Account) Unmarshal(b []byte) error
- func (a *Account) UnmarshalJSON(b []byte) error
- func (a *Account) Validate() error
- type AccountSettingsRequest
- type AccountSettingsResponse
- func (*AccountSettingsResponse) Descriptor() ([]byte, []int)
- func (m *AccountSettingsResponse) GetSettings() []*Setting
- func (m *AccountSettingsResponse) GetState() *ActualState
- func (*AccountSettingsResponse) ProtoMessage()
- func (m *AccountSettingsResponse) Reset()
- func (m *AccountSettingsResponse) String() string
- type AccountsRequest
- type AccountsResponse
- func (*AccountsResponse) Descriptor() ([]byte, []int)
- func (m *AccountsResponse) GetNextPageToken() string
- func (m *AccountsResponse) GetTotalTimeNs() int64
- func (m *AccountsResponse) GetTraceId() string
- func (*AccountsResponse) ProtoMessage()
- func (m *AccountsResponse) Reset()
- func (m *AccountsResponse) String() string
- type ActualState
- type Batch
- type ErrorResponse
- type ErrorResponse_ErrorType
- type Hash
- type HistoryRequest
- func (*HistoryRequest) Descriptor() ([]byte, []int)
- func (m *HistoryRequest) GetDirection() HistoryRequest_Direction
- func (m *HistoryRequest) GetPageSize() int32
- func (m *HistoryRequest) GetPageToken() string
- func (*HistoryRequest) ProtoMessage()
- func (m *HistoryRequest) Reset()
- func (m *HistoryRequest) String() string
- func (req *HistoryRequest) Validate() *json.UnmarshalTypeError
- type HistoryRequest_Direction
- type HistoryResponse
- func (*HistoryResponse) Descriptor() ([]byte, []int)
- func (m *HistoryResponse) GetNextPageToken() string
- func (m *HistoryResponse) GetState() *ActualState
- func (m *HistoryResponse) GetTransactions() []*Txn
- func (*HistoryResponse) ProtoMessage()
- func (m *HistoryResponse) Reset()
- func (m *HistoryResponse) String() string
- type Limit
- type PrevHashRequest
- type PrevHashResponse
- type Setting
- type StatsRequest
- type StatsResponse
- func (*StatsResponse) Descriptor() ([]byte, []int)
- func (m *StatsResponse) GetEmitterBalance() int64
- func (m *StatsResponse) GetInputs() int64
- func (m *StatsResponse) GetOutputs() int64
- func (m *StatsResponse) GetSettings() int64
- func (m *StatsResponse) GetState() *ActualState
- func (*StatsResponse) ProtoMessage()
- func (m *StatsResponse) Reset()
- func (m *StatsResponse) String() string
- type TransferOK
- type TransferRequest
- func (*TransferRequest) Descriptor() ([]byte, []int)
- func (m *TransferRequest) GetBatch() []*Batch
- func (m *TransferRequest) GetCreatedAt() int64
- func (m *TransferRequest) GetSettingsId() int64
- func (m *TransferRequest) GetSign() string
- func (*TransferRequest) ProtoMessage()
- func (m *TransferRequest) Reset()
- func (m *TransferRequest) String() string
- func (req *TransferRequest) Validate() *json.UnmarshalTypeError
- type TransferResponse
- func (*TransferResponse) Descriptor() ([]byte, []int)
- func (m *TransferResponse) GetError() *ErrorResponse
- func (m *TransferResponse) GetResult() *TransferOK
- func (m *TransferResponse) GetState() *ActualState
- func (*TransferResponse) ProtoMessage()
- func (m *TransferResponse) Reset()
- func (m *TransferResponse) String() string
- type Txn
- func (*Txn) Descriptor() ([]byte, []int)
- func (m *Txn) GetAmount() int64
- func (m *Txn) GetBalance() int64
- func (m *Txn) GetBatchId() int64
- func (m *Txn) GetCreatedAt() int64
- func (m *Txn) GetId() int64
- func (m *Txn) GetLastReceiverId() int64
- func (m *Txn) GetProcessedAt() int64
- func (m *Txn) GetReceiver() int64
- func (m *Txn) GetSender() int64
- func (m *Txn) GetSettingsId() int64
- func (m *Txn) GetSign() string
- func (*Txn) ProtoMessage()
- func (m *Txn) Reset()
- func (m *Txn) String() string
- type UpdateSettingsOK
- type UpdateSettingsRequest
- func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)
- func (m *UpdateSettingsRequest) GetCreatedAt() int64
- func (m *UpdateSettingsRequest) GetLimits() []*Limit
- func (m *UpdateSettingsRequest) GetPublicKey() string
- func (m *UpdateSettingsRequest) GetSign() string
- func (m *UpdateSettingsRequest) GetVerifySettingChangeSign() bool
- func (m *UpdateSettingsRequest) GetVerifyTransferSign() bool
- func (*UpdateSettingsRequest) ProtoMessage()
- func (m *UpdateSettingsRequest) Reset()
- func (m *UpdateSettingsRequest) String() string
- func (req *UpdateSettingsRequest) Validate() *json.UnmarshalTypeError
- type UpdateSettingsResponse
- func (*UpdateSettingsResponse) Descriptor() ([]byte, []int)
- func (m *UpdateSettingsResponse) GetError() *ErrorResponse
- func (m *UpdateSettingsResponse) GetResult() *UpdateSettingsOK
- func (m *UpdateSettingsResponse) GetState() *ActualState
- func (*UpdateSettingsResponse) ProtoMessage()
- func (m *UpdateSettingsResponse) Reset()
- func (m *UpdateSettingsResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorResponse_ErrorType_name = map[int32]string{
0: "GENERAL",
1: "BALANCE",
2: "POLICY",
}
View Source
var ErrorResponse_ErrorType_value = map[string]int32{
"GENERAL": 0,
"BALANCE": 1,
"POLICY": 2,
}
View Source
var HistoryRequest_Direction_name = map[int32]string{
0: "BOTH",
1: "OUTPUT",
2: "INPUT",
}
View Source
var HistoryRequest_Direction_value = map[string]int32{
"BOTH": 0,
"OUTPUT": 1,
"INPUT": 2,
}
Functions ¶
func AddAPIHandlers ¶
func NewAPIHandler ¶
func NewAPIHandler(srv APIInterface, c graceful.Codec) graceful.Handlerer
Types ¶
type APIHTTPClient ¶
func NewAPIHTTPClient ¶
func NewAPIHTTPClient(cl *graceful.Client) APIHTTPClient
func (APIHTTPClient) GetAccountSettings ¶
func (cl APIHTTPClient) GetAccountSettings(ctx context.Context, args *AccountSettingsRequest) (*AccountSettingsResponse, error)
func (APIHTTPClient) GetAccounts ¶
func (cl APIHTTPClient) GetAccounts(ctx context.Context, args *AccountsRequest) (*AccountsResponse, error)
func (APIHTTPClient) GetHistory ¶
func (cl APIHTTPClient) GetHistory(ctx context.Context, args *HistoryRequest) (*HistoryResponse, error)
func (APIHTTPClient) GetPrevHash ¶
func (cl APIHTTPClient) GetPrevHash(ctx context.Context, args *PrevHashRequest) (*PrevHashResponse, error)
func (APIHTTPClient) GetStats ¶
func (cl APIHTTPClient) GetStats(ctx context.Context, args *StatsRequest) (*StatsResponse, error)
func (APIHTTPClient) Transfer ¶
func (cl APIHTTPClient) Transfer(ctx context.Context, args *TransferRequest) (*TransferResponse, error)
func (APIHTTPClient) UpdateSettings ¶
func (cl APIHTTPClient) UpdateSettings(ctx context.Context, args *UpdateSettingsRequest) (*UpdateSettingsResponse, error)
type APIInterface ¶
type APIInterface interface { Transfer(context.Context, *TransferRequest) (*TransferResponse, error) UpdateSettings(context.Context, *UpdateSettingsRequest) (*UpdateSettingsResponse, error) GetPrevHash(context.Context, *PrevHashRequest) (*PrevHashResponse, error) GetHistory(context.Context, *HistoryRequest) (*HistoryResponse, error) GetStats(context.Context, *StatsRequest) (*StatsResponse, error) GetAccounts(context.Context, *AccountsRequest) (*AccountsResponse, error) GetAccountSettings(context.Context, *AccountSettingsRequest) (*AccountSettingsResponse, error) }
type Account ¶
type Account uint64
func (*Account) Descriptor ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
type AccountSettingsRequest ¶
type AccountSettingsRequest struct {
Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"`
}
func (*AccountSettingsRequest) Descriptor ¶
func (*AccountSettingsRequest) Descriptor() ([]byte, []int)
func (*AccountSettingsRequest) ProtoMessage ¶
func (*AccountSettingsRequest) ProtoMessage()
func (*AccountSettingsRequest) Reset ¶
func (m *AccountSettingsRequest) Reset()
func (*AccountSettingsRequest) String ¶
func (m *AccountSettingsRequest) String() string
func (*AccountSettingsRequest) Validate ¶
func (req *AccountSettingsRequest) Validate() *json.UnmarshalTypeError
type AccountSettingsResponse ¶
type AccountSettingsResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Settings []*Setting `protobuf:"bytes,2,rep,name=settings" json:"settings,omitempty"` }
func (*AccountSettingsResponse) Descriptor ¶
func (*AccountSettingsResponse) Descriptor() ([]byte, []int)
func (*AccountSettingsResponse) GetSettings ¶
func (m *AccountSettingsResponse) GetSettings() []*Setting
func (*AccountSettingsResponse) GetState ¶
func (m *AccountSettingsResponse) GetState() *ActualState
func (*AccountSettingsResponse) ProtoMessage ¶
func (*AccountSettingsResponse) ProtoMessage()
func (*AccountSettingsResponse) Reset ¶
func (m *AccountSettingsResponse) Reset()
func (*AccountSettingsResponse) String ¶
func (m *AccountSettingsResponse) String() string
type AccountsRequest ¶
type AccountsRequest struct {
Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"`
}
func (*AccountsRequest) Descriptor ¶
func (*AccountsRequest) Descriptor() ([]byte, []int)
func (*AccountsRequest) ProtoMessage ¶
func (*AccountsRequest) ProtoMessage()
func (*AccountsRequest) Reset ¶
func (m *AccountsRequest) Reset()
func (*AccountsRequest) String ¶
func (m *AccountsRequest) String() string
func (*AccountsRequest) Validate ¶
func (req *AccountsRequest) Validate() *json.UnmarshalTypeError
type AccountsResponse ¶
type AccountsResponse struct { Accounts []Account `protobuf:"varint,1,rep,packed,name=accounts,customtype=Account" json:"accounts,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` TotalTimeNs int64 `protobuf:"varint,3,opt,name=total_time_ns,json=totalTimeNs,proto3" json:"total_time_ns,omitempty"` TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` }
func (*AccountsResponse) Descriptor ¶
func (*AccountsResponse) Descriptor() ([]byte, []int)
func (*AccountsResponse) GetNextPageToken ¶
func (m *AccountsResponse) GetNextPageToken() string
func (*AccountsResponse) GetTotalTimeNs ¶
func (m *AccountsResponse) GetTotalTimeNs() int64
func (*AccountsResponse) GetTraceId ¶
func (m *AccountsResponse) GetTraceId() string
func (*AccountsResponse) ProtoMessage ¶
func (*AccountsResponse) ProtoMessage()
func (*AccountsResponse) Reset ¶
func (m *AccountsResponse) Reset()
func (*AccountsResponse) String ¶
func (m *AccountsResponse) String() string
type ActualState ¶
type ActualState struct { Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"` Balance int64 `protobuf:"varint,2,opt,name=balance,proto3" json:"balance,omitempty"` LastHash Hash `protobuf:"bytes,3,opt,name=last_hash,json=lastHash,proto3,customtype=Hash" json:"last_hash"` LastOpTimeNs int64 `protobuf:"varint,4,opt,name=last_op_time_ns,json=lastOpTimeNs,proto3" json:"last_op_time_ns,omitempty"` TraceId string `protobuf:"bytes,5,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` }
func (*ActualState) Descriptor ¶
func (*ActualState) Descriptor() ([]byte, []int)
func (*ActualState) GetBalance ¶
func (m *ActualState) GetBalance() int64
func (*ActualState) GetLastOpTimeNs ¶
func (m *ActualState) GetLastOpTimeNs() int64
func (*ActualState) GetTraceId ¶
func (m *ActualState) GetTraceId() string
func (*ActualState) ProtoMessage ¶
func (*ActualState) ProtoMessage()
func (*ActualState) Reset ¶
func (m *ActualState) Reset()
func (*ActualState) String ¶
func (m *ActualState) String() string
type Batch ¶
type Batch struct { Receiver Account `protobuf:"varint,1,opt,name=receiver,proto3,customtype=Account" json:"receiver"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*Batch) Descriptor ¶
func (*Batch) ProtoMessage ¶
func (*Batch) ProtoMessage()
type ErrorResponse ¶
type ErrorResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` ErrorType ErrorResponse_ErrorType `protobuf:"varint,2,opt,name=error_type,json=errorType,proto3,enum=api_v1.ErrorResponse_ErrorType" json:"error_type,omitempty"` }
func (*ErrorResponse) Descriptor ¶
func (*ErrorResponse) Descriptor() ([]byte, []int)
func (*ErrorResponse) GetError ¶
func (m *ErrorResponse) GetError() string
func (*ErrorResponse) GetErrorType ¶
func (m *ErrorResponse) GetErrorType() ErrorResponse_ErrorType
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) Reset ¶
func (m *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (m *ErrorResponse) String() string
type ErrorResponse_ErrorType ¶
type ErrorResponse_ErrorType int32
const ( ErrorResponse_GENERAL ErrorResponse_ErrorType = 0 ErrorResponse_BALANCE ErrorResponse_ErrorType = 1 ErrorResponse_POLICY ErrorResponse_ErrorType = 2 )
func (ErrorResponse_ErrorType) EnumDescriptor ¶
func (ErrorResponse_ErrorType) EnumDescriptor() ([]byte, []int)
func (ErrorResponse_ErrorType) String ¶
func (x ErrorResponse_ErrorType) String() string
type Hash ¶
type Hash string
func (*Hash) Descriptor ¶
func (*Hash) ProtoMessage ¶
func (*Hash) ProtoMessage()
type HistoryRequest ¶
type HistoryRequest struct { Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"` Direction HistoryRequest_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=api_v1.HistoryRequest_Direction" json:"direction,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` }
func (*HistoryRequest) Descriptor ¶
func (*HistoryRequest) Descriptor() ([]byte, []int)
func (*HistoryRequest) GetDirection ¶
func (m *HistoryRequest) GetDirection() HistoryRequest_Direction
func (*HistoryRequest) GetPageSize ¶
func (m *HistoryRequest) GetPageSize() int32
func (*HistoryRequest) GetPageToken ¶
func (m *HistoryRequest) GetPageToken() string
func (*HistoryRequest) ProtoMessage ¶
func (*HistoryRequest) ProtoMessage()
func (*HistoryRequest) Reset ¶
func (m *HistoryRequest) Reset()
func (*HistoryRequest) String ¶
func (m *HistoryRequest) String() string
func (*HistoryRequest) Validate ¶
func (req *HistoryRequest) Validate() *json.UnmarshalTypeError
type HistoryRequest_Direction ¶
type HistoryRequest_Direction int32
const ( HistoryRequest_BOTH HistoryRequest_Direction = 0 HistoryRequest_OUTPUT HistoryRequest_Direction = 1 HistoryRequest_INPUT HistoryRequest_Direction = 2 )
func (HistoryRequest_Direction) EnumDescriptor ¶
func (HistoryRequest_Direction) EnumDescriptor() ([]byte, []int)
func (HistoryRequest_Direction) String ¶
func (x HistoryRequest_Direction) String() string
type HistoryResponse ¶
type HistoryResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Transactions []*Txn `protobuf:"bytes,2,rep,name=transactions" json:"transactions,omitempty"` NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` }
func (*HistoryResponse) Descriptor ¶
func (*HistoryResponse) Descriptor() ([]byte, []int)
func (*HistoryResponse) GetNextPageToken ¶
func (m *HistoryResponse) GetNextPageToken() string
func (*HistoryResponse) GetState ¶
func (m *HistoryResponse) GetState() *ActualState
func (*HistoryResponse) GetTransactions ¶
func (m *HistoryResponse) GetTransactions() []*Txn
func (*HistoryResponse) ProtoMessage ¶
func (*HistoryResponse) ProtoMessage()
func (*HistoryResponse) Reset ¶
func (m *HistoryResponse) Reset()
func (*HistoryResponse) String ¶
func (m *HistoryResponse) String() string
type Limit ¶
type Limit struct { Duration int64 `protobuf:"varint,1,opt,name=duration,proto3" json:"duration,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` }
func (*Limit) Descriptor ¶
func (*Limit) GetDuration ¶
func (*Limit) ProtoMessage ¶
func (*Limit) ProtoMessage()
type PrevHashRequest ¶
type PrevHashRequest struct {
Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"`
}
func (*PrevHashRequest) Descriptor ¶
func (*PrevHashRequest) Descriptor() ([]byte, []int)
func (*PrevHashRequest) ProtoMessage ¶
func (*PrevHashRequest) ProtoMessage()
func (*PrevHashRequest) Reset ¶
func (m *PrevHashRequest) Reset()
func (*PrevHashRequest) String ¶
func (m *PrevHashRequest) String() string
func (*PrevHashRequest) Validate ¶
func (req *PrevHashRequest) Validate() *json.UnmarshalTypeError
type PrevHashResponse ¶
type PrevHashResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` SettingsId int64 `protobuf:"varint,2,opt,name=settings_id,json=settingsId,proto3" json:"settings_id,omitempty"` }
func (*PrevHashResponse) Descriptor ¶
func (*PrevHashResponse) Descriptor() ([]byte, []int)
func (*PrevHashResponse) GetSettingsId ¶
func (m *PrevHashResponse) GetSettingsId() int64
func (*PrevHashResponse) GetState ¶
func (m *PrevHashResponse) GetState() *ActualState
func (*PrevHashResponse) ProtoMessage ¶
func (*PrevHashResponse) ProtoMessage()
func (*PrevHashResponse) Reset ¶
func (m *PrevHashResponse) Reset()
func (*PrevHashResponse) String ¶
func (m *PrevHashResponse) String() string
type Setting ¶
type Setting struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PrevHash Hash `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3,customtype=Hash" json:"prev_hash"` Limits []*Limit `protobuf:"bytes,3,rep,name=limits" json:"limits,omitempty"` }
func (*Setting) Descriptor ¶
func (*Setting) ProtoMessage ¶
func (*Setting) ProtoMessage()
type StatsRequest ¶
type StatsRequest struct {
Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"`
}
func (*StatsRequest) Descriptor ¶
func (*StatsRequest) Descriptor() ([]byte, []int)
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) Reset ¶
func (m *StatsRequest) Reset()
func (*StatsRequest) String ¶
func (m *StatsRequest) String() string
type StatsResponse ¶
type StatsResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` EmitterBalance int64 `protobuf:"varint,2,opt,name=emitter_balance,json=emitterBalance,proto3" json:"emitter_balance,omitempty"` Outputs int64 `protobuf:"varint,3,opt,name=outputs,proto3" json:"outputs,omitempty"` Inputs int64 `protobuf:"varint,4,opt,name=inputs,proto3" json:"inputs,omitempty"` Settings int64 `protobuf:"varint,5,opt,name=settings,proto3" json:"settings,omitempty"` }
func (*StatsResponse) Descriptor ¶
func (*StatsResponse) Descriptor() ([]byte, []int)
func (*StatsResponse) GetEmitterBalance ¶
func (m *StatsResponse) GetEmitterBalance() int64
func (*StatsResponse) GetInputs ¶
func (m *StatsResponse) GetInputs() int64
func (*StatsResponse) GetOutputs ¶
func (m *StatsResponse) GetOutputs() int64
func (*StatsResponse) GetSettings ¶
func (m *StatsResponse) GetSettings() int64
func (*StatsResponse) GetState ¶
func (m *StatsResponse) GetState() *ActualState
func (*StatsResponse) ProtoMessage ¶
func (*StatsResponse) ProtoMessage()
func (*StatsResponse) Reset ¶
func (m *StatsResponse) Reset()
func (*StatsResponse) String ¶
func (m *StatsResponse) String() string
type TransferOK ¶
type TransferOK struct { SettingsId int64 `protobuf:"varint,1,opt,name=settings_id,json=settingsId,proto3" json:"settings_id,omitempty"` LastBatchId int64 `protobuf:"varint,2,opt,name=last_batch_id,json=lastBatchId,proto3" json:"last_batch_id,omitempty"` }
func (*TransferOK) Descriptor ¶
func (*TransferOK) Descriptor() ([]byte, []int)
func (*TransferOK) GetLastBatchId ¶
func (m *TransferOK) GetLastBatchId() int64
func (*TransferOK) GetSettingsId ¶
func (m *TransferOK) GetSettingsId() int64
func (*TransferOK) ProtoMessage ¶
func (*TransferOK) ProtoMessage()
func (*TransferOK) Reset ¶
func (m *TransferOK) Reset()
func (*TransferOK) String ¶
func (m *TransferOK) String() string
type TransferRequest ¶
type TransferRequest struct { Sender Account `protobuf:"varint,1,opt,name=sender,proto3,customtype=Account" json:"sender"` CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` PrevHash Hash `protobuf:"bytes,3,opt,name=prev_hash,json=prevHash,proto3,customtype=Hash" json:"prev_hash"` SettingsId int64 `protobuf:"varint,4,opt,name=settings_id,json=settingsId,proto3" json:"settings_id,omitempty"` Batch []*Batch `protobuf:"bytes,5,rep,name=batch" json:"batch,omitempty"` Sign string `protobuf:"bytes,6,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*TransferRequest) Descriptor ¶
func (*TransferRequest) Descriptor() ([]byte, []int)
func (*TransferRequest) GetBatch ¶
func (m *TransferRequest) GetBatch() []*Batch
func (*TransferRequest) GetCreatedAt ¶
func (m *TransferRequest) GetCreatedAt() int64
func (*TransferRequest) GetSettingsId ¶
func (m *TransferRequest) GetSettingsId() int64
func (*TransferRequest) GetSign ¶
func (m *TransferRequest) GetSign() string
func (*TransferRequest) ProtoMessage ¶
func (*TransferRequest) ProtoMessage()
func (*TransferRequest) Reset ¶
func (m *TransferRequest) Reset()
func (*TransferRequest) String ¶
func (m *TransferRequest) String() string
func (*TransferRequest) Validate ¶
func (req *TransferRequest) Validate() *json.UnmarshalTypeError
type TransferResponse ¶
type TransferResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Result *TransferOK `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error *ErrorResponse `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*TransferResponse) Descriptor ¶
func (*TransferResponse) Descriptor() ([]byte, []int)
func (*TransferResponse) GetError ¶
func (m *TransferResponse) GetError() *ErrorResponse
func (*TransferResponse) GetResult ¶
func (m *TransferResponse) GetResult() *TransferOK
func (*TransferResponse) GetState ¶
func (m *TransferResponse) GetState() *ActualState
func (*TransferResponse) ProtoMessage ¶
func (*TransferResponse) ProtoMessage()
func (*TransferResponse) Reset ¶
func (m *TransferResponse) Reset()
func (*TransferResponse) String ¶
func (m *TransferResponse) String() string
type Txn ¶
type Txn struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` BatchId int64 `protobuf:"varint,2,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"` Sender int64 `protobuf:"varint,3,opt,name=sender,proto3" json:"sender,omitempty"` Receiver int64 `protobuf:"varint,4,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Balance int64 `protobuf:"varint,6,opt,name=balance,proto3" json:"balance,omitempty"` PrevHash Hash `protobuf:"bytes,7,opt,name=prev_hash,json=prevHash,proto3,customtype=Hash" json:"prev_hash"` LastReceiverId int64 `protobuf:"varint,8,opt,name=last_receiver_id,json=lastReceiverId,proto3" json:"last_receiver_id,omitempty"` InputsHash Hash `protobuf:"bytes,9,opt,name=inputs_hash,json=inputsHash,proto3,customtype=Hash" json:"inputs_hash"` ConfirmedBy Account `protobuf:"varint,10,opt,name=confirmed_by,json=confirmedBy,proto3,customtype=Account" json:"confirmed_by"` CreatedAt int64 `protobuf:"varint,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ProcessedAt int64 `protobuf:"varint,12,opt,name=processed_at,json=processedAt,proto3" json:"processed_at,omitempty"` Hash Hash `protobuf:"bytes,13,opt,name=hash,proto3,customtype=Hash" json:"hash"` SettingsId int64 `protobuf:"varint,14,opt,name=settings_id,json=settingsId,proto3" json:"settings_id,omitempty"` Sign string `protobuf:"bytes,15,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*Txn) Descriptor ¶
func (*Txn) GetBalance ¶
func (*Txn) GetBatchId ¶
func (*Txn) GetCreatedAt ¶
func (*Txn) GetLastReceiverId ¶
func (*Txn) GetProcessedAt ¶
func (*Txn) GetReceiver ¶
func (*Txn) GetSettingsId ¶
func (*Txn) ProtoMessage ¶
func (*Txn) ProtoMessage()
type UpdateSettingsOK ¶
type UpdateSettingsOK struct { LastSettingsId int64 `protobuf:"varint,1,opt,name=last_settings_id,json=lastSettingsId,proto3" json:"last_settings_id,omitempty"` LastSettingsHash Hash `protobuf:"bytes,2,opt,name=last_settings_hash,json=lastSettingsHash,proto3,customtype=Hash" json:"last_settings_hash"` }
func (*UpdateSettingsOK) Descriptor ¶
func (*UpdateSettingsOK) Descriptor() ([]byte, []int)
func (*UpdateSettingsOK) GetLastSettingsId ¶
func (m *UpdateSettingsOK) GetLastSettingsId() int64
func (*UpdateSettingsOK) ProtoMessage ¶
func (*UpdateSettingsOK) ProtoMessage()
func (*UpdateSettingsOK) Reset ¶
func (m *UpdateSettingsOK) Reset()
func (*UpdateSettingsOK) String ¶
func (m *UpdateSettingsOK) String() string
type UpdateSettingsRequest ¶
type UpdateSettingsRequest struct { Account Account `protobuf:"varint,1,opt,name=account,proto3,customtype=Account" json:"account"` PrevHash Hash `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3,customtype=Hash" json:"prev_hash"` CreatedAt int64 `protobuf:"varint,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Limits []*Limit `protobuf:"bytes,4,rep,name=limits" json:"limits,omitempty"` VerifyTransferSign bool `protobuf:"varint,5,opt,name=verify_transfer_sign,json=verifyTransferSign,proto3" json:"verify_transfer_sign,omitempty"` VerifySettingChangeSign bool `` /* 135-byte string literal not displayed */ PublicKey string `protobuf:"bytes,7,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` Sign string `protobuf:"bytes,8,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*UpdateSettingsRequest) Descriptor ¶
func (*UpdateSettingsRequest) Descriptor() ([]byte, []int)
func (*UpdateSettingsRequest) GetCreatedAt ¶
func (m *UpdateSettingsRequest) GetCreatedAt() int64
func (*UpdateSettingsRequest) GetLimits ¶
func (m *UpdateSettingsRequest) GetLimits() []*Limit
func (*UpdateSettingsRequest) GetPublicKey ¶
func (m *UpdateSettingsRequest) GetPublicKey() string
func (*UpdateSettingsRequest) GetSign ¶
func (m *UpdateSettingsRequest) GetSign() string
func (*UpdateSettingsRequest) GetVerifySettingChangeSign ¶
func (m *UpdateSettingsRequest) GetVerifySettingChangeSign() bool
func (*UpdateSettingsRequest) GetVerifyTransferSign ¶
func (m *UpdateSettingsRequest) GetVerifyTransferSign() bool
func (*UpdateSettingsRequest) ProtoMessage ¶
func (*UpdateSettingsRequest) ProtoMessage()
func (*UpdateSettingsRequest) Reset ¶
func (m *UpdateSettingsRequest) Reset()
func (*UpdateSettingsRequest) String ¶
func (m *UpdateSettingsRequest) String() string
func (*UpdateSettingsRequest) Validate ¶
func (req *UpdateSettingsRequest) Validate() *json.UnmarshalTypeError
type UpdateSettingsResponse ¶
type UpdateSettingsResponse struct { State *ActualState `protobuf:"bytes,1,opt,name=state" json:"state,omitempty"` Result *UpdateSettingsOK `protobuf:"bytes,2,opt,name=result" json:"result,omitempty"` Error *ErrorResponse `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` }
func (*UpdateSettingsResponse) Descriptor ¶
func (*UpdateSettingsResponse) Descriptor() ([]byte, []int)
func (*UpdateSettingsResponse) GetError ¶
func (m *UpdateSettingsResponse) GetError() *ErrorResponse
func (*UpdateSettingsResponse) GetResult ¶
func (m *UpdateSettingsResponse) GetResult() *UpdateSettingsOK
func (*UpdateSettingsResponse) GetState ¶
func (m *UpdateSettingsResponse) GetState() *ActualState
func (*UpdateSettingsResponse) ProtoMessage ¶
func (*UpdateSettingsResponse) ProtoMessage()
func (*UpdateSettingsResponse) Reset ¶
func (m *UpdateSettingsResponse) Reset()
func (*UpdateSettingsResponse) String ¶
func (m *UpdateSettingsResponse) String() string
Click to show internal directories.
Click to hide internal directories.