Documentation ¶
Index ¶
- func RegisterTransactionHandler(s server.Server, hdlr TransactionHandler, opts ...server.HandlerOption) error
- func RegisterTransactionServer(s *grpc.Server, srv TransactionServer)
- type TransactionClient
- type TransactionHandler
- type TransactionInformation
- func (*TransactionInformation) Descriptor() ([]byte, []int)
- func (m *TransactionInformation) GetAccountId() string
- func (m *TransactionInformation) GetAmount() int64
- func (m *TransactionInformation) GetAmountIsPending() bool
- func (m *TransactionInformation) GetCanAddToTab() bool
- func (m *TransactionInformation) GetCanBeExcludedFromBreakdown() bool
- func (m *TransactionInformation) GetCanBeMadeSubscription() bool
- func (m *TransactionInformation) GetCanSplitTheBill() bool
- func (m *TransactionInformation) GetCategory() string
- func (m *TransactionInformation) GetCreated() int64
- func (m *TransactionInformation) GetCurrency() string
- func (m *TransactionInformation) GetDeclineReason() string
- func (m *TransactionInformation) GetDescription() string
- func (m *TransactionInformation) GetId() string
- func (m *TransactionInformation) GetIncludeInSpending() bool
- func (m *TransactionInformation) GetIsLoad() bool
- func (m *TransactionInformation) GetLocalAmount() int64
- func (m *TransactionInformation) GetLocalCurrency() string
- func (m *TransactionInformation) GetMerchant() string
- func (m *TransactionInformation) GetNotes() string
- func (m *TransactionInformation) GetSettled() int64
- func (m *TransactionInformation) GetUpdated() int64
- func (m *TransactionInformation) GetUserId() string
- func (*TransactionInformation) ProtoMessage()
- func (m *TransactionInformation) Reset()
- func (m *TransactionInformation) String() string
- func (m *TransactionInformation) XXX_DiscardUnknown()
- func (m *TransactionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionInformation) XXX_Merge(src proto.Message)
- func (m *TransactionInformation) XXX_Size() int
- func (m *TransactionInformation) XXX_Unmarshal(b []byte) error
- type TransactionReply
- func (*TransactionReply) Descriptor() ([]byte, []int)
- func (m *TransactionReply) GetTransactions() []*TransactionInformation
- func (*TransactionReply) ProtoMessage()
- func (m *TransactionReply) Reset()
- func (m *TransactionReply) String() string
- func (m *TransactionReply) XXX_DiscardUnknown()
- func (m *TransactionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionReply) XXX_Merge(src proto.Message)
- func (m *TransactionReply) XXX_Size() int
- func (m *TransactionReply) XXX_Unmarshal(b []byte) error
- type TransactionRequest
- func (*TransactionRequest) Descriptor() ([]byte, []int)
- func (m *TransactionRequest) GetAccountId() string
- func (*TransactionRequest) ProtoMessage()
- func (m *TransactionRequest) Reset()
- func (m *TransactionRequest) String() string
- func (m *TransactionRequest) XXX_DiscardUnknown()
- func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TransactionRequest) XXX_Merge(src proto.Message)
- func (m *TransactionRequest) XXX_Size() int
- func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
- type TransactionServer
- type TransactionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTransactionHandler ¶
func RegisterTransactionHandler(s server.Server, hdlr TransactionHandler, opts ...server.HandlerOption) error
func RegisterTransactionServer ¶
func RegisterTransactionServer(s *grpc.Server, srv TransactionServer)
Types ¶
type TransactionClient ¶
type TransactionClient interface {
GetTransactions(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TransactionReply, error)
}
TransactionClient is the client API for Transaction service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTransactionClient ¶
func NewTransactionClient(cc *grpc.ClientConn) TransactionClient
type TransactionHandler ¶
type TransactionHandler interface {
GetTransactions(context.Context, *TransactionRequest, *TransactionReply) error
}
type TransactionInformation ¶
type TransactionInformation struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` Created int64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Amount int64 `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"` Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` Merchant string `protobuf:"bytes,7,opt,name=merchant,proto3" json:"merchant,omitempty"` Notes string `protobuf:"bytes,8,opt,name=notes,proto3" json:"notes,omitempty"` Settled int64 `protobuf:"varint,9,opt,name=settled,proto3" json:"settled,omitempty"` UserId string `protobuf:"bytes,10,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` IsLoad bool `protobuf:"varint,11,opt,name=is_load,json=isLoad,proto3" json:"is_load,omitempty"` Updated int64 `protobuf:"varint,12,opt,name=updated,proto3" json:"updated,omitempty"` LocalAmount int64 `protobuf:"varint,13,opt,name=local_amount,json=localAmount,proto3" json:"local_amount,omitempty"` LocalCurrency string `protobuf:"bytes,14,opt,name=local_currency,json=localCurrency,proto3" json:"local_currency,omitempty"` IncludeInSpending bool `protobuf:"varint,15,opt,name=include_in_spending,json=includeInSpending,proto3" json:"include_in_spending,omitempty"` CanBeExcludedFromBreakdown bool `` /* 147-byte string literal not displayed */ CanBeMadeSubscription bool `` /* 130-byte string literal not displayed */ CanSplitTheBill bool `protobuf:"varint,18,opt,name=can_split_the_bill,json=canSplitTheBill,proto3" json:"can_split_the_bill,omitempty"` CanAddToTab bool `protobuf:"varint,19,opt,name=can_add_to_tab,json=canAddToTab,proto3" json:"can_add_to_tab,omitempty"` AmountIsPending bool `protobuf:"varint,20,opt,name=amount_is_pending,json=amountIsPending,proto3" json:"amount_is_pending,omitempty"` DeclineReason string `protobuf:"bytes,21,opt,name=decline_reason,json=declineReason,proto3" json:"decline_reason,omitempty"` Category string `protobuf:"bytes,22,opt,name=category,proto3" json:"category,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionInformation) Descriptor ¶
func (*TransactionInformation) Descriptor() ([]byte, []int)
func (*TransactionInformation) GetAccountId ¶
func (m *TransactionInformation) GetAccountId() string
func (*TransactionInformation) GetAmount ¶
func (m *TransactionInformation) GetAmount() int64
func (*TransactionInformation) GetAmountIsPending ¶
func (m *TransactionInformation) GetAmountIsPending() bool
func (*TransactionInformation) GetCanAddToTab ¶
func (m *TransactionInformation) GetCanAddToTab() bool
func (*TransactionInformation) GetCanBeExcludedFromBreakdown ¶
func (m *TransactionInformation) GetCanBeExcludedFromBreakdown() bool
func (*TransactionInformation) GetCanBeMadeSubscription ¶
func (m *TransactionInformation) GetCanBeMadeSubscription() bool
func (*TransactionInformation) GetCanSplitTheBill ¶
func (m *TransactionInformation) GetCanSplitTheBill() bool
func (*TransactionInformation) GetCategory ¶
func (m *TransactionInformation) GetCategory() string
func (*TransactionInformation) GetCreated ¶
func (m *TransactionInformation) GetCreated() int64
func (*TransactionInformation) GetCurrency ¶
func (m *TransactionInformation) GetCurrency() string
func (*TransactionInformation) GetDeclineReason ¶
func (m *TransactionInformation) GetDeclineReason() string
func (*TransactionInformation) GetDescription ¶
func (m *TransactionInformation) GetDescription() string
func (*TransactionInformation) GetId ¶
func (m *TransactionInformation) GetId() string
func (*TransactionInformation) GetIncludeInSpending ¶
func (m *TransactionInformation) GetIncludeInSpending() bool
func (*TransactionInformation) GetIsLoad ¶
func (m *TransactionInformation) GetIsLoad() bool
func (*TransactionInformation) GetLocalAmount ¶
func (m *TransactionInformation) GetLocalAmount() int64
func (*TransactionInformation) GetLocalCurrency ¶
func (m *TransactionInformation) GetLocalCurrency() string
func (*TransactionInformation) GetMerchant ¶
func (m *TransactionInformation) GetMerchant() string
func (*TransactionInformation) GetNotes ¶
func (m *TransactionInformation) GetNotes() string
func (*TransactionInformation) GetSettled ¶
func (m *TransactionInformation) GetSettled() int64
func (*TransactionInformation) GetUpdated ¶
func (m *TransactionInformation) GetUpdated() int64
func (*TransactionInformation) GetUserId ¶
func (m *TransactionInformation) GetUserId() string
func (*TransactionInformation) ProtoMessage ¶
func (*TransactionInformation) ProtoMessage()
func (*TransactionInformation) Reset ¶
func (m *TransactionInformation) Reset()
func (*TransactionInformation) String ¶
func (m *TransactionInformation) String() string
func (*TransactionInformation) XXX_DiscardUnknown ¶
func (m *TransactionInformation) XXX_DiscardUnknown()
func (*TransactionInformation) XXX_Marshal ¶
func (m *TransactionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionInformation) XXX_Merge ¶
func (m *TransactionInformation) XXX_Merge(src proto.Message)
func (*TransactionInformation) XXX_Size ¶
func (m *TransactionInformation) XXX_Size() int
func (*TransactionInformation) XXX_Unmarshal ¶
func (m *TransactionInformation) XXX_Unmarshal(b []byte) error
type TransactionReply ¶
type TransactionReply struct { Transactions []*TransactionInformation `protobuf:"bytes,1,rep,name=transactions,proto3" json:"transactions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*TransactionReply) Descriptor ¶
func (*TransactionReply) Descriptor() ([]byte, []int)
func (*TransactionReply) GetTransactions ¶
func (m *TransactionReply) GetTransactions() []*TransactionInformation
func (*TransactionReply) ProtoMessage ¶
func (*TransactionReply) ProtoMessage()
func (*TransactionReply) Reset ¶
func (m *TransactionReply) Reset()
func (*TransactionReply) String ¶
func (m *TransactionReply) String() string
func (*TransactionReply) XXX_DiscardUnknown ¶
func (m *TransactionReply) XXX_DiscardUnknown()
func (*TransactionReply) XXX_Marshal ¶
func (m *TransactionReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionReply) XXX_Merge ¶
func (m *TransactionReply) XXX_Merge(src proto.Message)
func (*TransactionReply) XXX_Size ¶
func (m *TransactionReply) XXX_Size() int
func (*TransactionReply) XXX_Unmarshal ¶
func (m *TransactionReply) XXX_Unmarshal(b []byte) error
type TransactionRequest ¶
type TransactionRequest struct { AccountId string `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 (*TransactionRequest) Descriptor ¶
func (*TransactionRequest) Descriptor() ([]byte, []int)
func (*TransactionRequest) GetAccountId ¶
func (m *TransactionRequest) GetAccountId() string
func (*TransactionRequest) ProtoMessage ¶
func (*TransactionRequest) ProtoMessage()
func (*TransactionRequest) Reset ¶
func (m *TransactionRequest) Reset()
func (*TransactionRequest) String ¶
func (m *TransactionRequest) String() string
func (*TransactionRequest) XXX_DiscardUnknown ¶
func (m *TransactionRequest) XXX_DiscardUnknown()
func (*TransactionRequest) XXX_Marshal ¶
func (m *TransactionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TransactionRequest) XXX_Merge ¶
func (m *TransactionRequest) XXX_Merge(src proto.Message)
func (*TransactionRequest) XXX_Size ¶
func (m *TransactionRequest) XXX_Size() int
func (*TransactionRequest) XXX_Unmarshal ¶
func (m *TransactionRequest) XXX_Unmarshal(b []byte) error
type TransactionServer ¶
type TransactionServer interface {
GetTransactions(context.Context, *TransactionRequest) (*TransactionReply, error)
}
TransactionServer is the server API for Transaction service.
type TransactionService ¶
type TransactionService interface {
GetTransactions(ctx context.Context, in *TransactionRequest, opts ...client.CallOption) (*TransactionReply, error)
}
func NewTransactionService ¶
func NewTransactionService(name string, c client.Client) TransactionService
Click to show internal directories.
Click to hide internal directories.