Documentation ¶
Index ¶
- Variables
- func RegisterAccountServer(s *grpc.Server, srv AccountServer)
- type AccountClient
- type AccountInfo
- func (*AccountInfo) Descriptor() ([]byte, []int)
- func (m *AccountInfo) GetAccountId() *v3.StellarAccountId
- func (m *AccountInfo) GetBalance() int64
- func (m *AccountInfo) GetSequenceNumber() int64
- func (*AccountInfo) ProtoMessage()
- func (m *AccountInfo) Reset()
- func (m *AccountInfo) String() string
- func (m *AccountInfo) Validate() error
- func (m *AccountInfo) XXX_DiscardUnknown()
- func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountInfo) XXX_Merge(src proto.Message)
- func (m *AccountInfo) XXX_Size() int
- func (m *AccountInfo) XXX_Unmarshal(b []byte) error
- type AccountInfoValidationError
- func (e AccountInfoValidationError) Cause() error
- func (e AccountInfoValidationError) Error() string
- func (e AccountInfoValidationError) ErrorName() string
- func (e AccountInfoValidationError) Field() string
- func (e AccountInfoValidationError) Key() bool
- func (e AccountInfoValidationError) Reason() string
- type AccountServer
- type AccountUpdateEvent
- func (*AccountUpdateEvent) Descriptor() ([]byte, []int)
- func (m *AccountUpdateEvent) GetAccountInfo() *AccountInfo
- func (*AccountUpdateEvent) ProtoMessage()
- func (m *AccountUpdateEvent) Reset()
- func (m *AccountUpdateEvent) String() string
- func (m *AccountUpdateEvent) Validate() error
- func (m *AccountUpdateEvent) XXX_DiscardUnknown()
- func (m *AccountUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountUpdateEvent) XXX_Merge(src proto.Message)
- func (m *AccountUpdateEvent) XXX_Size() int
- func (m *AccountUpdateEvent) XXX_Unmarshal(b []byte) error
- type AccountUpdateEventValidationError
- func (e AccountUpdateEventValidationError) Cause() error
- func (e AccountUpdateEventValidationError) Error() string
- func (e AccountUpdateEventValidationError) ErrorName() string
- func (e AccountUpdateEventValidationError) Field() string
- func (e AccountUpdateEventValidationError) Key() bool
- func (e AccountUpdateEventValidationError) Reason() string
- type Account_GetEventsClient
- type Account_GetEventsServer
- type CreateAccountRequest
- func (*CreateAccountRequest) Descriptor() ([]byte, []int)
- func (m *CreateAccountRequest) GetAccountId() *v3.StellarAccountId
- func (*CreateAccountRequest) ProtoMessage()
- func (m *CreateAccountRequest) Reset()
- func (m *CreateAccountRequest) String() string
- func (m *CreateAccountRequest) Validate() error
- func (m *CreateAccountRequest) XXX_DiscardUnknown()
- func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
- func (m *CreateAccountRequest) XXX_Size() int
- func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
- type CreateAccountRequestValidationError
- func (e CreateAccountRequestValidationError) Cause() error
- func (e CreateAccountRequestValidationError) Error() string
- func (e CreateAccountRequestValidationError) ErrorName() string
- func (e CreateAccountRequestValidationError) Field() string
- func (e CreateAccountRequestValidationError) Key() bool
- func (e CreateAccountRequestValidationError) Reason() string
- type CreateAccountResponse
- func (*CreateAccountResponse) Descriptor() ([]byte, []int)
- func (m *CreateAccountResponse) GetAccountInfo() *AccountInfo
- func (m *CreateAccountResponse) GetResult() CreateAccountResponse_Result
- func (*CreateAccountResponse) ProtoMessage()
- func (m *CreateAccountResponse) Reset()
- func (m *CreateAccountResponse) String() string
- func (m *CreateAccountResponse) Validate() error
- func (m *CreateAccountResponse) XXX_DiscardUnknown()
- func (m *CreateAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateAccountResponse) XXX_Merge(src proto.Message)
- func (m *CreateAccountResponse) XXX_Size() int
- func (m *CreateAccountResponse) XXX_Unmarshal(b []byte) error
- type CreateAccountResponseValidationError
- func (e CreateAccountResponseValidationError) Cause() error
- func (e CreateAccountResponseValidationError) Error() string
- func (e CreateAccountResponseValidationError) ErrorName() string
- func (e CreateAccountResponseValidationError) Field() string
- func (e CreateAccountResponseValidationError) Key() bool
- func (e CreateAccountResponseValidationError) Reason() string
- type CreateAccountResponse_Result
- type Event
- func (*Event) Descriptor() ([]byte, []int)
- func (m *Event) GetAccountUpdateEvent() *AccountUpdateEvent
- func (m *Event) GetTransactionEvent() *TransactionEvent
- func (m *Event) GetType() isEvent_Type
- func (*Event) ProtoMessage()
- func (m *Event) Reset()
- func (m *Event) String() string
- func (m *Event) Validate() error
- func (m *Event) XXX_DiscardUnknown()
- func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Event) XXX_Merge(src proto.Message)
- func (*Event) XXX_OneofWrappers() []interface{}
- func (m *Event) XXX_Size() int
- func (m *Event) XXX_Unmarshal(b []byte) error
- type EventValidationError
- type Event_AccountUpdateEvent
- type Event_TransactionEvent
- type Events
- func (*Events) Descriptor() ([]byte, []int)
- func (m *Events) GetEvents() []*Event
- func (m *Events) GetResult() Events_Result
- func (*Events) ProtoMessage()
- func (m *Events) Reset()
- func (m *Events) String() string
- func (m *Events) Validate() error
- func (m *Events) XXX_DiscardUnknown()
- func (m *Events) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Events) XXX_Merge(src proto.Message)
- func (m *Events) XXX_Size() int
- func (m *Events) XXX_Unmarshal(b []byte) error
- type EventsValidationError
- type Events_Result
- type GetAccountInfoRequest
- func (*GetAccountInfoRequest) Descriptor() ([]byte, []int)
- func (m *GetAccountInfoRequest) GetAccountId() *v3.StellarAccountId
- func (*GetAccountInfoRequest) ProtoMessage()
- func (m *GetAccountInfoRequest) Reset()
- func (m *GetAccountInfoRequest) String() string
- func (m *GetAccountInfoRequest) Validate() error
- func (m *GetAccountInfoRequest) XXX_DiscardUnknown()
- func (m *GetAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetAccountInfoRequest) XXX_Size() int
- func (m *GetAccountInfoRequest) XXX_Unmarshal(b []byte) error
- type GetAccountInfoRequestValidationError
- func (e GetAccountInfoRequestValidationError) Cause() error
- func (e GetAccountInfoRequestValidationError) Error() string
- func (e GetAccountInfoRequestValidationError) ErrorName() string
- func (e GetAccountInfoRequestValidationError) Field() string
- func (e GetAccountInfoRequestValidationError) Key() bool
- func (e GetAccountInfoRequestValidationError) Reason() string
- type GetAccountInfoResponse
- func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetAccountInfoResponse) GetAccountInfo() *AccountInfo
- func (m *GetAccountInfoResponse) GetResult() GetAccountInfoResponse_Result
- func (*GetAccountInfoResponse) ProtoMessage()
- func (m *GetAccountInfoResponse) Reset()
- func (m *GetAccountInfoResponse) String() string
- func (m *GetAccountInfoResponse) Validate() error
- func (m *GetAccountInfoResponse) XXX_DiscardUnknown()
- func (m *GetAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetAccountInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetAccountInfoResponse) XXX_Size() int
- func (m *GetAccountInfoResponse) XXX_Unmarshal(b []byte) error
- type GetAccountInfoResponseValidationError
- func (e GetAccountInfoResponseValidationError) Cause() error
- func (e GetAccountInfoResponseValidationError) Error() string
- func (e GetAccountInfoResponseValidationError) ErrorName() string
- func (e GetAccountInfoResponseValidationError) Field() string
- func (e GetAccountInfoResponseValidationError) Key() bool
- func (e GetAccountInfoResponseValidationError) Reason() string
- type GetAccountInfoResponse_Result
- type GetEventsRequest
- func (*GetEventsRequest) Descriptor() ([]byte, []int)
- func (m *GetEventsRequest) GetAccountId() *v3.StellarAccountId
- func (*GetEventsRequest) ProtoMessage()
- func (m *GetEventsRequest) Reset()
- func (m *GetEventsRequest) String() string
- func (m *GetEventsRequest) Validate() error
- func (m *GetEventsRequest) XXX_DiscardUnknown()
- func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetEventsRequest) XXX_Merge(src proto.Message)
- func (m *GetEventsRequest) XXX_Size() int
- func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error
- type GetEventsRequestValidationError
- func (e GetEventsRequestValidationError) Cause() error
- func (e GetEventsRequestValidationError) Error() string
- func (e GetEventsRequestValidationError) ErrorName() string
- func (e GetEventsRequestValidationError) Field() string
- func (e GetEventsRequestValidationError) Key() bool
- func (e GetEventsRequestValidationError) Reason() string
- type TransactionEvent
- func (*TransactionEvent) Descriptor() ([]byte, []int)
- func (m *TransactionEvent) GetEnvelopeXdr() []byte
- func (m *TransactionEvent) GetResultXdr() []byte
- func (*TransactionEvent) ProtoMessage()
- func (m *TransactionEvent) Reset()
- func (m *TransactionEvent) String() string
- func (m *TransactionEvent) Validate() error
- func (m *TransactionEvent) XXX_DiscardUnknown()
- func (m *TransactionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionEvent) XXX_Merge(src proto.Message)
- func (m *TransactionEvent) XXX_Size() int
- func (m *TransactionEvent) XXX_Unmarshal(b []byte) error
- type TransactionEventValidationError
- func (e TransactionEventValidationError) Cause() error
- func (e TransactionEventValidationError) Error() string
- func (e TransactionEventValidationError) ErrorName() string
- func (e TransactionEventValidationError) Field() string
- func (e TransactionEventValidationError) Key() bool
- func (e TransactionEventValidationError) Reason() string
- type UnimplementedAccountServer
- func (*UnimplementedAccountServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*CreateAccountResponse, error)
- func (*UnimplementedAccountServer) GetAccountInfo(ctx context.Context, req *GetAccountInfoRequest) (*GetAccountInfoResponse, error)
- func (*UnimplementedAccountServer) GetEvents(req *GetEventsRequest, srv Account_GetEventsServer) error
Constants ¶
This section is empty.
Variables ¶
var CreateAccountResponse_Result_name = map[int32]string{
0: "OK",
1: "EXISTS",
}
var CreateAccountResponse_Result_value = map[string]int32{
"OK": 0,
"EXISTS": 1,
}
var Events_Result_name = map[int32]string{
0: "OK",
1: "NOT_FOUND",
}
var Events_Result_value = map[string]int32{
"OK": 0,
"NOT_FOUND": 1,
}
var GetAccountInfoResponse_Result_name = map[int32]string{
0: "OK",
1: "NOT_FOUND",
}
var GetAccountInfoResponse_Result_value = map[string]int32{
"OK": 0,
"NOT_FOUND": 1,
}
Functions ¶
func RegisterAccountServer ¶
func RegisterAccountServer(s *grpc.Server, srv AccountServer)
Types ¶
type AccountClient ¶
type AccountClient interface { // CreateAccount creates an account using a the service's configured seed // account. CreateAccount(ctx context.Context, in *CreateAccountRequest, opts ...grpc.CallOption) (*CreateAccountResponse, error) // GetAccountInfo returns the information of a specified account. GetAccountInfo(ctx context.Context, in *GetAccountInfoRequest, opts ...grpc.CallOption) (*GetAccountInfoResponse, error) // GetEvents returns a stream of events related to the specified account. // // Note: Only events occurring after stream initiation will be returned. GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (Account_GetEventsClient, error) }
AccountClient is the client API for Account service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAccountClient ¶
func NewAccountClient(cc *grpc.ClientConn) AccountClient
type AccountInfo ¶
type AccountInfo struct { AccountId *v3.StellarAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // The last known sequence number of the account. SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` // The last known balance, in quarks, of the account. Balance int64 `protobuf:"varint,3,opt,name=balance,proto3" json:"balance,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AccountInfo) Descriptor ¶
func (*AccountInfo) Descriptor() ([]byte, []int)
func (*AccountInfo) GetAccountId ¶
func (m *AccountInfo) GetAccountId() *v3.StellarAccountId
func (*AccountInfo) GetBalance ¶
func (m *AccountInfo) GetBalance() int64
func (*AccountInfo) GetSequenceNumber ¶
func (m *AccountInfo) GetSequenceNumber() int64
func (*AccountInfo) ProtoMessage ¶
func (*AccountInfo) ProtoMessage()
func (*AccountInfo) Reset ¶
func (m *AccountInfo) Reset()
func (*AccountInfo) String ¶
func (m *AccountInfo) String() string
func (*AccountInfo) Validate ¶
func (m *AccountInfo) Validate() error
Validate checks the field values on AccountInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AccountInfo) XXX_DiscardUnknown ¶
func (m *AccountInfo) XXX_DiscardUnknown()
func (*AccountInfo) XXX_Marshal ¶
func (m *AccountInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountInfo) XXX_Merge ¶
func (m *AccountInfo) XXX_Merge(src proto.Message)
func (*AccountInfo) XXX_Size ¶
func (m *AccountInfo) XXX_Size() int
func (*AccountInfo) XXX_Unmarshal ¶
func (m *AccountInfo) XXX_Unmarshal(b []byte) error
type AccountInfoValidationError ¶
type AccountInfoValidationError struct {
// contains filtered or unexported fields
}
AccountInfoValidationError is the validation error returned by AccountInfo.Validate if the designated constraints aren't met.
func (AccountInfoValidationError) Cause ¶
func (e AccountInfoValidationError) Cause() error
Cause function returns cause value.
func (AccountInfoValidationError) Error ¶
func (e AccountInfoValidationError) Error() string
Error satisfies the builtin error interface
func (AccountInfoValidationError) ErrorName ¶
func (e AccountInfoValidationError) ErrorName() string
ErrorName returns error name.
func (AccountInfoValidationError) Field ¶
func (e AccountInfoValidationError) Field() string
Field function returns field value.
func (AccountInfoValidationError) Key ¶
func (e AccountInfoValidationError) Key() bool
Key function returns key value.
func (AccountInfoValidationError) Reason ¶
func (e AccountInfoValidationError) Reason() string
Reason function returns reason value.
type AccountServer ¶
type AccountServer interface { // CreateAccount creates an account using a the service's configured seed // account. CreateAccount(context.Context, *CreateAccountRequest) (*CreateAccountResponse, error) // GetAccountInfo returns the information of a specified account. GetAccountInfo(context.Context, *GetAccountInfoRequest) (*GetAccountInfoResponse, error) // GetEvents returns a stream of events related to the specified account. // // Note: Only events occurring after stream initiation will be returned. GetEvents(*GetEventsRequest, Account_GetEventsServer) error }
AccountServer is the server API for Account service.
type AccountUpdateEvent ¶
type AccountUpdateEvent struct { // The account information most recently obtained by the service. AccountInfo *AccountInfo `protobuf:"bytes,1,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event that gets sent when an account's information has changed.
func (*AccountUpdateEvent) Descriptor ¶
func (*AccountUpdateEvent) Descriptor() ([]byte, []int)
func (*AccountUpdateEvent) GetAccountInfo ¶
func (m *AccountUpdateEvent) GetAccountInfo() *AccountInfo
func (*AccountUpdateEvent) ProtoMessage ¶
func (*AccountUpdateEvent) ProtoMessage()
func (*AccountUpdateEvent) Reset ¶
func (m *AccountUpdateEvent) Reset()
func (*AccountUpdateEvent) String ¶
func (m *AccountUpdateEvent) String() string
func (*AccountUpdateEvent) Validate ¶
func (m *AccountUpdateEvent) Validate() error
Validate checks the field values on AccountUpdateEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*AccountUpdateEvent) XXX_DiscardUnknown ¶
func (m *AccountUpdateEvent) XXX_DiscardUnknown()
func (*AccountUpdateEvent) XXX_Marshal ¶
func (m *AccountUpdateEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountUpdateEvent) XXX_Merge ¶
func (m *AccountUpdateEvent) XXX_Merge(src proto.Message)
func (*AccountUpdateEvent) XXX_Size ¶
func (m *AccountUpdateEvent) XXX_Size() int
func (*AccountUpdateEvent) XXX_Unmarshal ¶
func (m *AccountUpdateEvent) XXX_Unmarshal(b []byte) error
type AccountUpdateEventValidationError ¶
type AccountUpdateEventValidationError struct {
// contains filtered or unexported fields
}
AccountUpdateEventValidationError is the validation error returned by AccountUpdateEvent.Validate if the designated constraints aren't met.
func (AccountUpdateEventValidationError) Cause ¶
func (e AccountUpdateEventValidationError) Cause() error
Cause function returns cause value.
func (AccountUpdateEventValidationError) Error ¶
func (e AccountUpdateEventValidationError) Error() string
Error satisfies the builtin error interface
func (AccountUpdateEventValidationError) ErrorName ¶
func (e AccountUpdateEventValidationError) ErrorName() string
ErrorName returns error name.
func (AccountUpdateEventValidationError) Field ¶
func (e AccountUpdateEventValidationError) Field() string
Field function returns field value.
func (AccountUpdateEventValidationError) Key ¶
func (e AccountUpdateEventValidationError) Key() bool
Key function returns key value.
func (AccountUpdateEventValidationError) Reason ¶
func (e AccountUpdateEventValidationError) Reason() string
Reason function returns reason value.
type Account_GetEventsClient ¶
type Account_GetEventsClient interface { Recv() (*Events, error) grpc.ClientStream }
type Account_GetEventsServer ¶
type Account_GetEventsServer interface { Send(*Events) error grpc.ServerStream }
type CreateAccountRequest ¶
type CreateAccountRequest struct { // Account to be created AccountId *v3.StellarAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountRequest) Descriptor ¶
func (*CreateAccountRequest) Descriptor() ([]byte, []int)
func (*CreateAccountRequest) GetAccountId ¶
func (m *CreateAccountRequest) GetAccountId() *v3.StellarAccountId
func (*CreateAccountRequest) ProtoMessage ¶
func (*CreateAccountRequest) ProtoMessage()
func (*CreateAccountRequest) Reset ¶
func (m *CreateAccountRequest) Reset()
func (*CreateAccountRequest) String ¶
func (m *CreateAccountRequest) String() string
func (*CreateAccountRequest) Validate ¶
func (m *CreateAccountRequest) Validate() error
Validate checks the field values on CreateAccountRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateAccountRequest) XXX_DiscardUnknown ¶
func (m *CreateAccountRequest) XXX_DiscardUnknown()
func (*CreateAccountRequest) XXX_Marshal ¶
func (m *CreateAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountRequest) XXX_Merge ¶
func (m *CreateAccountRequest) XXX_Merge(src proto.Message)
func (*CreateAccountRequest) XXX_Size ¶
func (m *CreateAccountRequest) XXX_Size() int
func (*CreateAccountRequest) XXX_Unmarshal ¶
func (m *CreateAccountRequest) XXX_Unmarshal(b []byte) error
type CreateAccountRequestValidationError ¶
type CreateAccountRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAccountRequestValidationError is the validation error returned by CreateAccountRequest.Validate if the designated constraints aren't met.
func (CreateAccountRequestValidationError) Cause ¶
func (e CreateAccountRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountRequestValidationError) Error ¶
func (e CreateAccountRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountRequestValidationError) ErrorName ¶
func (e CreateAccountRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountRequestValidationError) Field ¶
func (e CreateAccountRequestValidationError) Field() string
Field function returns field value.
func (CreateAccountRequestValidationError) Key ¶
func (e CreateAccountRequestValidationError) Key() bool
Key function returns key value.
func (CreateAccountRequestValidationError) Reason ¶
func (e CreateAccountRequestValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse ¶
type CreateAccountResponse struct { Result CreateAccountResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v3.CreateAccountResponse_Result" json:"result,omitempty"` // Will be present if the account was created or already existed. AccountInfo *AccountInfo `protobuf:"bytes,2,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateAccountResponse) Descriptor ¶
func (*CreateAccountResponse) Descriptor() ([]byte, []int)
func (*CreateAccountResponse) GetAccountInfo ¶
func (m *CreateAccountResponse) GetAccountInfo() *AccountInfo
func (*CreateAccountResponse) GetResult ¶
func (m *CreateAccountResponse) GetResult() CreateAccountResponse_Result
func (*CreateAccountResponse) ProtoMessage ¶
func (*CreateAccountResponse) ProtoMessage()
func (*CreateAccountResponse) Reset ¶
func (m *CreateAccountResponse) Reset()
func (*CreateAccountResponse) String ¶
func (m *CreateAccountResponse) String() string
func (*CreateAccountResponse) Validate ¶
func (m *CreateAccountResponse) Validate() error
Validate checks the field values on CreateAccountResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateAccountResponse) XXX_DiscardUnknown ¶
func (m *CreateAccountResponse) XXX_DiscardUnknown()
func (*CreateAccountResponse) XXX_Marshal ¶
func (m *CreateAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateAccountResponse) XXX_Merge ¶
func (m *CreateAccountResponse) XXX_Merge(src proto.Message)
func (*CreateAccountResponse) XXX_Size ¶
func (m *CreateAccountResponse) XXX_Size() int
func (*CreateAccountResponse) XXX_Unmarshal ¶
func (m *CreateAccountResponse) XXX_Unmarshal(b []byte) error
type CreateAccountResponseValidationError ¶
type CreateAccountResponseValidationError struct {
// contains filtered or unexported fields
}
CreateAccountResponseValidationError is the validation error returned by CreateAccountResponse.Validate if the designated constraints aren't met.
func (CreateAccountResponseValidationError) Cause ¶
func (e CreateAccountResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountResponseValidationError) Error ¶
func (e CreateAccountResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountResponseValidationError) ErrorName ¶
func (e CreateAccountResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountResponseValidationError) Field ¶
func (e CreateAccountResponseValidationError) Field() string
Field function returns field value.
func (CreateAccountResponseValidationError) Key ¶
func (e CreateAccountResponseValidationError) Key() bool
Key function returns key value.
func (CreateAccountResponseValidationError) Reason ¶
func (e CreateAccountResponseValidationError) Reason() string
Reason function returns reason value.
type CreateAccountResponse_Result ¶
type CreateAccountResponse_Result int32
const ( CreateAccountResponse_OK CreateAccountResponse_Result = 0 CreateAccountResponse_EXISTS CreateAccountResponse_Result = 1 )
func (CreateAccountResponse_Result) EnumDescriptor ¶
func (CreateAccountResponse_Result) EnumDescriptor() ([]byte, []int)
func (CreateAccountResponse_Result) String ¶
func (x CreateAccountResponse_Result) String() string
type Event ¶
type Event struct { // Types that are valid to be assigned to Type: // *Event_AccountUpdateEvent // *Event_TransactionEvent Type isEvent_Type `protobuf_oneof:"type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Event) Descriptor ¶
func (*Event) GetAccountUpdateEvent ¶
func (m *Event) GetAccountUpdateEvent() *AccountUpdateEvent
func (*Event) GetTransactionEvent ¶
func (m *Event) GetTransactionEvent() *TransactionEvent
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) Validate ¶
Validate checks the field values on Event with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Event) XXX_DiscardUnknown ¶
func (m *Event) XXX_DiscardUnknown()
func (*Event) XXX_Marshal ¶
func (*Event) XXX_OneofWrappers ¶
func (*Event) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Event) XXX_Unmarshal ¶
type EventValidationError ¶
type EventValidationError struct {
// contains filtered or unexported fields
}
EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.
func (EventValidationError) Cause ¶
func (e EventValidationError) Cause() error
Cause function returns cause value.
func (EventValidationError) Error ¶
func (e EventValidationError) Error() string
Error satisfies the builtin error interface
func (EventValidationError) ErrorName ¶
func (e EventValidationError) ErrorName() string
ErrorName returns error name.
func (EventValidationError) Field ¶
func (e EventValidationError) Field() string
Field function returns field value.
func (EventValidationError) Key ¶
func (e EventValidationError) Key() bool
Key function returns key value.
func (EventValidationError) Reason ¶
func (e EventValidationError) Reason() string
Reason function returns reason value.
type Event_AccountUpdateEvent ¶
type Event_AccountUpdateEvent struct {
AccountUpdateEvent *AccountUpdateEvent `protobuf:"bytes,1,opt,name=account_update_event,json=accountUpdateEvent,proto3,oneof"`
}
type Event_TransactionEvent ¶
type Event_TransactionEvent struct {
TransactionEvent *TransactionEvent `protobuf:"bytes,2,opt,name=transaction_event,json=transactionEvent,proto3,oneof"`
}
type Events ¶
type Events struct { Result Events_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v3.Events_Result" json:"result,omitempty"` Events []*Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Events) Descriptor ¶
func (*Events) GetResult ¶
func (m *Events) GetResult() Events_Result
func (*Events) ProtoMessage ¶
func (*Events) ProtoMessage()
func (*Events) Validate ¶
Validate checks the field values on Events with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Events) XXX_DiscardUnknown ¶
func (m *Events) XXX_DiscardUnknown()
func (*Events) XXX_Marshal ¶
func (*Events) XXX_Unmarshal ¶
type EventsValidationError ¶
type EventsValidationError struct {
// contains filtered or unexported fields
}
EventsValidationError is the validation error returned by Events.Validate if the designated constraints aren't met.
func (EventsValidationError) Cause ¶
func (e EventsValidationError) Cause() error
Cause function returns cause value.
func (EventsValidationError) Error ¶
func (e EventsValidationError) Error() string
Error satisfies the builtin error interface
func (EventsValidationError) ErrorName ¶
func (e EventsValidationError) ErrorName() string
ErrorName returns error name.
func (EventsValidationError) Field ¶
func (e EventsValidationError) Field() string
Field function returns field value.
func (EventsValidationError) Key ¶
func (e EventsValidationError) Key() bool
Key function returns key value.
func (EventsValidationError) Reason ¶
func (e EventsValidationError) Reason() string
Reason function returns reason value.
type Events_Result ¶
type Events_Result int32
const ( Events_OK Events_Result = 0 // The specified account could not be found. Events_NOT_FOUND Events_Result = 1 )
func (Events_Result) EnumDescriptor ¶
func (Events_Result) EnumDescriptor() ([]byte, []int)
func (Events_Result) String ¶
func (x Events_Result) String() string
type GetAccountInfoRequest ¶
type GetAccountInfoRequest struct { AccountId *v3.StellarAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountInfoRequest) Descriptor ¶
func (*GetAccountInfoRequest) Descriptor() ([]byte, []int)
func (*GetAccountInfoRequest) GetAccountId ¶
func (m *GetAccountInfoRequest) GetAccountId() *v3.StellarAccountId
func (*GetAccountInfoRequest) ProtoMessage ¶
func (*GetAccountInfoRequest) ProtoMessage()
func (*GetAccountInfoRequest) Reset ¶
func (m *GetAccountInfoRequest) Reset()
func (*GetAccountInfoRequest) String ¶
func (m *GetAccountInfoRequest) String() string
func (*GetAccountInfoRequest) Validate ¶
func (m *GetAccountInfoRequest) Validate() error
Validate checks the field values on GetAccountInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetAccountInfoRequest) XXX_DiscardUnknown ¶
func (m *GetAccountInfoRequest) XXX_DiscardUnknown()
func (*GetAccountInfoRequest) XXX_Marshal ¶
func (m *GetAccountInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountInfoRequest) XXX_Merge ¶
func (m *GetAccountInfoRequest) XXX_Merge(src proto.Message)
func (*GetAccountInfoRequest) XXX_Size ¶
func (m *GetAccountInfoRequest) XXX_Size() int
func (*GetAccountInfoRequest) XXX_Unmarshal ¶
func (m *GetAccountInfoRequest) XXX_Unmarshal(b []byte) error
type GetAccountInfoRequestValidationError ¶
type GetAccountInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetAccountInfoRequestValidationError is the validation error returned by GetAccountInfoRequest.Validate if the designated constraints aren't met.
func (GetAccountInfoRequestValidationError) Cause ¶
func (e GetAccountInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAccountInfoRequestValidationError) Error ¶
func (e GetAccountInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountInfoRequestValidationError) ErrorName ¶
func (e GetAccountInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountInfoRequestValidationError) Field ¶
func (e GetAccountInfoRequestValidationError) Field() string
Field function returns field value.
func (GetAccountInfoRequestValidationError) Key ¶
func (e GetAccountInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetAccountInfoRequestValidationError) Reason ¶
func (e GetAccountInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetAccountInfoResponse ¶
type GetAccountInfoResponse struct { Result GetAccountInfoResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=kin.agora.account.v3.GetAccountInfoResponse_Result" json:"result,omitempty"` // Present iff result == Result::OK AccountInfo *AccountInfo `protobuf:"bytes,2,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetAccountInfoResponse) Descriptor ¶
func (*GetAccountInfoResponse) Descriptor() ([]byte, []int)
func (*GetAccountInfoResponse) GetAccountInfo ¶
func (m *GetAccountInfoResponse) GetAccountInfo() *AccountInfo
func (*GetAccountInfoResponse) GetResult ¶
func (m *GetAccountInfoResponse) GetResult() GetAccountInfoResponse_Result
func (*GetAccountInfoResponse) ProtoMessage ¶
func (*GetAccountInfoResponse) ProtoMessage()
func (*GetAccountInfoResponse) Reset ¶
func (m *GetAccountInfoResponse) Reset()
func (*GetAccountInfoResponse) String ¶
func (m *GetAccountInfoResponse) String() string
func (*GetAccountInfoResponse) Validate ¶
func (m *GetAccountInfoResponse) Validate() error
Validate checks the field values on GetAccountInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetAccountInfoResponse) XXX_DiscardUnknown ¶
func (m *GetAccountInfoResponse) XXX_DiscardUnknown()
func (*GetAccountInfoResponse) XXX_Marshal ¶
func (m *GetAccountInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetAccountInfoResponse) XXX_Merge ¶
func (m *GetAccountInfoResponse) XXX_Merge(src proto.Message)
func (*GetAccountInfoResponse) XXX_Size ¶
func (m *GetAccountInfoResponse) XXX_Size() int
func (*GetAccountInfoResponse) XXX_Unmarshal ¶
func (m *GetAccountInfoResponse) XXX_Unmarshal(b []byte) error
type GetAccountInfoResponseValidationError ¶
type GetAccountInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetAccountInfoResponseValidationError is the validation error returned by GetAccountInfoResponse.Validate if the designated constraints aren't met.
func (GetAccountInfoResponseValidationError) Cause ¶
func (e GetAccountInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAccountInfoResponseValidationError) Error ¶
func (e GetAccountInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountInfoResponseValidationError) ErrorName ¶
func (e GetAccountInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountInfoResponseValidationError) Field ¶
func (e GetAccountInfoResponseValidationError) Field() string
Field function returns field value.
func (GetAccountInfoResponseValidationError) Key ¶
func (e GetAccountInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetAccountInfoResponseValidationError) Reason ¶
func (e GetAccountInfoResponseValidationError) Reason() string
Reason function returns reason value.
type GetAccountInfoResponse_Result ¶
type GetAccountInfoResponse_Result int32
const ( GetAccountInfoResponse_OK GetAccountInfoResponse_Result = 0 // The specified account could not be found. GetAccountInfoResponse_NOT_FOUND GetAccountInfoResponse_Result = 1 )
func (GetAccountInfoResponse_Result) EnumDescriptor ¶
func (GetAccountInfoResponse_Result) EnumDescriptor() ([]byte, []int)
func (GetAccountInfoResponse_Result) String ¶
func (x GetAccountInfoResponse_Result) String() string
type GetEventsRequest ¶
type GetEventsRequest struct { // The id of the account to stream events for AccountId *v3.StellarAccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetEventsRequest) Descriptor ¶
func (*GetEventsRequest) Descriptor() ([]byte, []int)
func (*GetEventsRequest) GetAccountId ¶
func (m *GetEventsRequest) GetAccountId() *v3.StellarAccountId
func (*GetEventsRequest) ProtoMessage ¶
func (*GetEventsRequest) ProtoMessage()
func (*GetEventsRequest) Reset ¶
func (m *GetEventsRequest) Reset()
func (*GetEventsRequest) String ¶
func (m *GetEventsRequest) String() string
func (*GetEventsRequest) Validate ¶
func (m *GetEventsRequest) Validate() error
Validate checks the field values on GetEventsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetEventsRequest) XXX_DiscardUnknown ¶
func (m *GetEventsRequest) XXX_DiscardUnknown()
func (*GetEventsRequest) XXX_Marshal ¶
func (m *GetEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetEventsRequest) XXX_Merge ¶
func (m *GetEventsRequest) XXX_Merge(src proto.Message)
func (*GetEventsRequest) XXX_Size ¶
func (m *GetEventsRequest) XXX_Size() int
func (*GetEventsRequest) XXX_Unmarshal ¶
func (m *GetEventsRequest) XXX_Unmarshal(b []byte) error
type GetEventsRequestValidationError ¶
type GetEventsRequestValidationError struct {
// contains filtered or unexported fields
}
GetEventsRequestValidationError is the validation error returned by GetEventsRequest.Validate if the designated constraints aren't met.
func (GetEventsRequestValidationError) Cause ¶
func (e GetEventsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetEventsRequestValidationError) Error ¶
func (e GetEventsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetEventsRequestValidationError) ErrorName ¶
func (e GetEventsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetEventsRequestValidationError) Field ¶
func (e GetEventsRequestValidationError) Field() string
Field function returns field value.
func (GetEventsRequestValidationError) Key ¶
func (e GetEventsRequestValidationError) Key() bool
Key function returns key value.
func (GetEventsRequestValidationError) Reason ¶
func (e GetEventsRequestValidationError) Reason() string
Reason function returns reason value.
type TransactionEvent ¶
type TransactionEvent struct { // The transaction envelope XDR. EnvelopeXdr []byte `protobuf:"bytes,1,opt,name=envelope_xdr,json=envelopeXdr,proto3" json:"envelope_xdr,omitempty"` // The transaction result XDR. ResultXdr []byte `protobuf:"bytes,2,opt,name=result_xdr,json=resultXdr,proto3" json:"result_xdr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
An event that gets sent when a transaction related to an account has been successfully submitted to the blockchain.
func (*TransactionEvent) Descriptor ¶
func (*TransactionEvent) Descriptor() ([]byte, []int)
func (*TransactionEvent) GetEnvelopeXdr ¶
func (m *TransactionEvent) GetEnvelopeXdr() []byte
func (*TransactionEvent) GetResultXdr ¶
func (m *TransactionEvent) GetResultXdr() []byte
func (*TransactionEvent) ProtoMessage ¶
func (*TransactionEvent) ProtoMessage()
func (*TransactionEvent) Reset ¶
func (m *TransactionEvent) Reset()
func (*TransactionEvent) String ¶
func (m *TransactionEvent) String() string
func (*TransactionEvent) Validate ¶
func (m *TransactionEvent) Validate() error
Validate checks the field values on TransactionEvent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*TransactionEvent) XXX_DiscardUnknown ¶
func (m *TransactionEvent) XXX_DiscardUnknown()
func (*TransactionEvent) XXX_Marshal ¶
func (m *TransactionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionEvent) XXX_Merge ¶
func (m *TransactionEvent) XXX_Merge(src proto.Message)
func (*TransactionEvent) XXX_Size ¶
func (m *TransactionEvent) XXX_Size() int
func (*TransactionEvent) XXX_Unmarshal ¶
func (m *TransactionEvent) XXX_Unmarshal(b []byte) error
type TransactionEventValidationError ¶
type TransactionEventValidationError struct {
// contains filtered or unexported fields
}
TransactionEventValidationError is the validation error returned by TransactionEvent.Validate if the designated constraints aren't met.
func (TransactionEventValidationError) Cause ¶
func (e TransactionEventValidationError) Cause() error
Cause function returns cause value.
func (TransactionEventValidationError) Error ¶
func (e TransactionEventValidationError) Error() string
Error satisfies the builtin error interface
func (TransactionEventValidationError) ErrorName ¶
func (e TransactionEventValidationError) ErrorName() string
ErrorName returns error name.
func (TransactionEventValidationError) Field ¶
func (e TransactionEventValidationError) Field() string
Field function returns field value.
func (TransactionEventValidationError) Key ¶
func (e TransactionEventValidationError) Key() bool
Key function returns key value.
func (TransactionEventValidationError) Reason ¶
func (e TransactionEventValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServer ¶
type UnimplementedAccountServer struct { }
UnimplementedAccountServer can be embedded to have forward compatible implementations.
func (*UnimplementedAccountServer) CreateAccount ¶
func (*UnimplementedAccountServer) CreateAccount(ctx context.Context, req *CreateAccountRequest) (*CreateAccountResponse, error)
func (*UnimplementedAccountServer) GetAccountInfo ¶
func (*UnimplementedAccountServer) GetAccountInfo(ctx context.Context, req *GetAccountInfoRequest) (*GetAccountInfoResponse, error)
func (*UnimplementedAccountServer) GetEvents ¶
func (*UnimplementedAccountServer) GetEvents(req *GetEventsRequest, srv Account_GetEventsServer) error