account

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateAccountResponse_Result_name = map[int32]string{
	0: "OK",
	1: "EXISTS",
}
View Source
var CreateAccountResponse_Result_value = map[string]int32{
	"OK":     0,
	"EXISTS": 1,
}
View Source
var Events_Result_name = map[int32]string{
	0: "OK",
	1: "NOT_FOUND",
}
View Source
var Events_Result_value = map[string]int32{
	"OK":        0,
	"NOT_FOUND": 1,
}
View Source
var GetAccountInfoResponse_Result_name = map[int32]string{
	0: "OK",
	1: "NOT_FOUND",
}
View Source
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

Cause function returns cause value.

func (AccountInfoValidationError) Error

Error satisfies the builtin error interface

func (AccountInfoValidationError) ErrorName

func (e AccountInfoValidationError) ErrorName() string

ErrorName returns error name.

func (AccountInfoValidationError) Field

Field function returns field value.

func (AccountInfoValidationError) Key

Key function returns key value.

func (AccountInfoValidationError) Reason

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

Cause function returns cause value.

func (AccountUpdateEventValidationError) Error

Error satisfies the builtin error interface

func (AccountUpdateEventValidationError) ErrorName

ErrorName returns error name.

func (AccountUpdateEventValidationError) Field

Field function returns field value.

func (AccountUpdateEventValidationError) Key

Key function returns key value.

func (AccountUpdateEventValidationError) Reason

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

Cause function returns cause value.

func (CreateAccountRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountRequestValidationError) Field

Field function returns field value.

func (CreateAccountRequestValidationError) Key

Key function returns key value.

func (CreateAccountRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (CreateAccountResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountResponseValidationError) Field

Field function returns field value.

func (CreateAccountResponseValidationError) Key

Key function returns key value.

func (CreateAccountResponseValidationError) Reason

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

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) Descriptor() ([]byte, []int)

func (*Event) GetAccountUpdateEvent

func (m *Event) GetAccountUpdateEvent() *AccountUpdateEvent

func (*Event) GetTransactionEvent

func (m *Event) GetTransactionEvent() *TransactionEvent

func (*Event) GetType

func (m *Event) GetType() isEvent_Type

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) String

func (m *Event) String() string

func (*Event) Validate

func (m *Event) Validate() error

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 (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Event) XXX_Merge

func (m *Event) XXX_Merge(src proto.Message)

func (*Event) XXX_OneofWrappers

func (*Event) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Event) XXX_Size

func (m *Event) XXX_Size() int

func (*Event) XXX_Unmarshal

func (m *Event) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Events) GetEvents

func (m *Events) GetEvents() []*Event

func (*Events) GetResult

func (m *Events) GetResult() Events_Result

func (*Events) ProtoMessage

func (*Events) ProtoMessage()

func (*Events) Reset

func (m *Events) Reset()

func (*Events) String

func (m *Events) String() string

func (*Events) Validate

func (m *Events) Validate() error

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 (m *Events) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Events) XXX_Merge

func (m *Events) XXX_Merge(src proto.Message)

func (*Events) XXX_Size

func (m *Events) XXX_Size() int

func (*Events) XXX_Unmarshal

func (m *Events) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (GetAccountInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoRequestValidationError) Field

Field function returns field value.

func (GetAccountInfoRequestValidationError) Key

Key function returns key value.

func (GetAccountInfoRequestValidationError) Reason

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 (*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

Cause function returns cause value.

func (GetAccountInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAccountInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAccountInfoResponseValidationError) Field

Field function returns field value.

func (GetAccountInfoResponseValidationError) Key

Key function returns key value.

func (GetAccountInfoResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetEventsRequestValidationError) Field

Field function returns field value.

func (GetEventsRequestValidationError) Key

Key function returns key value.

func (GetEventsRequestValidationError) Reason

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

Cause function returns cause value.

func (TransactionEventValidationError) Error

Error satisfies the builtin error interface

func (TransactionEventValidationError) ErrorName

ErrorName returns error name.

func (TransactionEventValidationError) Field

Field function returns field value.

func (TransactionEventValidationError) Key

Key function returns key value.

func (TransactionEventValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServer

type UnimplementedAccountServer struct {
}

UnimplementedAccountServer can be embedded to have forward compatible implementations.

func (*UnimplementedAccountServer) CreateAccount

func (*UnimplementedAccountServer) GetAccountInfo

func (*UnimplementedAccountServer) GetEvents

Jump to

Keyboard shortcuts

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