transaction

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTransactorServer

func RegisterTransactorServer(s *grpc.Server, srv TransactorServer)

Types

type CurrencyRequest added in v0.3.0

type CurrencyRequest struct {
	Currency             string   `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Decimals             int64    `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
	Signature            string   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CurrencyRequest) Descriptor added in v0.3.0

func (*CurrencyRequest) Descriptor() ([]byte, []int)

func (*CurrencyRequest) GetCurrency added in v0.3.0

func (m *CurrencyRequest) GetCurrency() string

func (*CurrencyRequest) GetDecimals added in v0.3.0

func (m *CurrencyRequest) GetDecimals() int64

func (*CurrencyRequest) GetSignature added in v0.3.0

func (m *CurrencyRequest) GetSignature() string

func (*CurrencyRequest) ProtoMessage added in v0.3.0

func (*CurrencyRequest) ProtoMessage()

func (*CurrencyRequest) Reset added in v0.3.0

func (m *CurrencyRequest) Reset()

func (*CurrencyRequest) String added in v0.3.0

func (m *CurrencyRequest) String() string

func (*CurrencyRequest) XXX_DiscardUnknown added in v0.3.0

func (m *CurrencyRequest) XXX_DiscardUnknown()

func (*CurrencyRequest) XXX_Marshal added in v0.3.0

func (m *CurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrencyRequest) XXX_Merge added in v0.3.0

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

func (*CurrencyRequest) XXX_Size added in v0.3.0

func (m *CurrencyRequest) XXX_Size() int

func (*CurrencyRequest) XXX_Unmarshal added in v0.3.0

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

type DeleteCurrencyRequest added in v0.3.0

type DeleteCurrencyRequest struct {
	Currency             string   `protobuf:"bytes,1,opt,name=currency,proto3" json:"currency,omitempty"`
	Signature            string   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteCurrencyRequest) Descriptor added in v0.3.0

func (*DeleteCurrencyRequest) Descriptor() ([]byte, []int)

func (*DeleteCurrencyRequest) GetCurrency added in v0.3.0

func (m *DeleteCurrencyRequest) GetCurrency() string

func (*DeleteCurrencyRequest) GetSignature added in v0.3.0

func (m *DeleteCurrencyRequest) GetSignature() string

func (*DeleteCurrencyRequest) ProtoMessage added in v0.3.0

func (*DeleteCurrencyRequest) ProtoMessage()

func (*DeleteCurrencyRequest) Reset added in v0.3.0

func (m *DeleteCurrencyRequest) Reset()

func (*DeleteCurrencyRequest) String added in v0.3.0

func (m *DeleteCurrencyRequest) String() string

func (*DeleteCurrencyRequest) XXX_DiscardUnknown added in v0.3.0

func (m *DeleteCurrencyRequest) XXX_DiscardUnknown()

func (*DeleteCurrencyRequest) XXX_Marshal added in v0.3.0

func (m *DeleteCurrencyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteCurrencyRequest) XXX_Merge added in v0.3.0

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

func (*DeleteCurrencyRequest) XXX_Size added in v0.3.0

func (m *DeleteCurrencyRequest) XXX_Size() int

func (*DeleteCurrencyRequest) XXX_Unmarshal added in v0.3.0

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

type DeleteRequest

type DeleteRequest struct {
	Identifier           string   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Signature            string   `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteRequest) Descriptor

func (*DeleteRequest) Descriptor() ([]byte, []int)

func (*DeleteRequest) GetIdentifier

func (m *DeleteRequest) GetIdentifier() string

func (*DeleteRequest) GetSignature

func (m *DeleteRequest) GetSignature() string

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) Reset

func (m *DeleteRequest) Reset()

func (*DeleteRequest) String

func (m *DeleteRequest) String() string

func (*DeleteRequest) XXX_DiscardUnknown

func (m *DeleteRequest) XXX_DiscardUnknown()

func (*DeleteRequest) XXX_Marshal

func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteRequest) XXX_Merge

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

func (*DeleteRequest) XXX_Size

func (m *DeleteRequest) XXX_Size() int

func (*DeleteRequest) XXX_Unmarshal

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

type DeleteTagRequest

type DeleteTagRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Signature            string   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTagRequest) Descriptor

func (*DeleteTagRequest) Descriptor() ([]byte, []int)

func (*DeleteTagRequest) GetAccount

func (m *DeleteTagRequest) GetAccount() string

func (*DeleteTagRequest) GetSignature

func (m *DeleteTagRequest) GetSignature() string

func (*DeleteTagRequest) GetTag

func (m *DeleteTagRequest) GetTag() string

func (*DeleteTagRequest) ProtoMessage

func (*DeleteTagRequest) ProtoMessage()

func (*DeleteTagRequest) Reset

func (m *DeleteTagRequest) Reset()

func (*DeleteTagRequest) String

func (m *DeleteTagRequest) String() string

func (*DeleteTagRequest) XXX_DiscardUnknown

func (m *DeleteTagRequest) XXX_DiscardUnknown()

func (*DeleteTagRequest) XXX_Marshal

func (m *DeleteTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteTagRequest) XXX_Merge

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

func (*DeleteTagRequest) XXX_Size

func (m *DeleteTagRequest) XXX_Size() int

func (*DeleteTagRequest) XXX_Unmarshal

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

type LineItem

type LineItem struct {
	Accountname          string   `protobuf:"bytes,1,opt,name=accountname,proto3" json:"accountname,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Currency             string   `protobuf:"bytes,3,opt,name=currency,proto3" json:"currency,omitempty"`
	Amount               int64    `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LineItem) Descriptor

func (*LineItem) Descriptor() ([]byte, []int)

func (*LineItem) GetAccountname

func (m *LineItem) GetAccountname() string

func (*LineItem) GetAmount

func (m *LineItem) GetAmount() int64

func (*LineItem) GetCurrency added in v0.3.0

func (m *LineItem) GetCurrency() string

func (*LineItem) GetDescription

func (m *LineItem) GetDescription() string

func (*LineItem) ProtoMessage

func (*LineItem) ProtoMessage()

func (*LineItem) Reset

func (m *LineItem) Reset()

func (*LineItem) String

func (m *LineItem) String() string

func (*LineItem) XXX_DiscardUnknown

func (m *LineItem) XXX_DiscardUnknown()

func (*LineItem) XXX_Marshal

func (m *LineItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LineItem) XXX_Merge

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

func (*LineItem) XXX_Size

func (m *LineItem) XXX_Size() int

func (*LineItem) XXX_Unmarshal

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

type TBLine

type TBLine struct {
	Accountname          string   `protobuf:"bytes,1,opt,name=accountname,proto3" json:"accountname,omitempty"`
	Tags                 []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Amount               int64    `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Currency             string   `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"`
	Decimals             int64    `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	AmountStr            string   `protobuf:"bytes,6,opt,name=amountStr,proto3" json:"amountStr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TBLine) Descriptor

func (*TBLine) Descriptor() ([]byte, []int)

func (*TBLine) GetAccountname

func (m *TBLine) GetAccountname() string

func (*TBLine) GetAmount

func (m *TBLine) GetAmount() int64

func (*TBLine) GetAmountStr added in v0.3.0

func (m *TBLine) GetAmountStr() string

func (*TBLine) GetCurrency added in v0.3.0

func (m *TBLine) GetCurrency() string

func (*TBLine) GetDecimals added in v0.3.0

func (m *TBLine) GetDecimals() int64

func (*TBLine) GetTags

func (m *TBLine) GetTags() []string

func (*TBLine) ProtoMessage

func (*TBLine) ProtoMessage()

func (*TBLine) Reset

func (m *TBLine) Reset()

func (*TBLine) String

func (m *TBLine) String() string

func (*TBLine) XXX_DiscardUnknown

func (m *TBLine) XXX_DiscardUnknown()

func (*TBLine) XXX_Marshal

func (m *TBLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TBLine) XXX_Merge

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

func (*TBLine) XXX_Size

func (m *TBLine) XXX_Size() int

func (*TBLine) XXX_Unmarshal

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

type TBRequest

type TBRequest struct {
	Date                 string   `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TBRequest) Descriptor

func (*TBRequest) Descriptor() ([]byte, []int)

func (*TBRequest) GetDate

func (m *TBRequest) GetDate() string

func (*TBRequest) ProtoMessage

func (*TBRequest) ProtoMessage()

func (*TBRequest) Reset

func (m *TBRequest) Reset()

func (*TBRequest) String

func (m *TBRequest) String() string

func (*TBRequest) XXX_DiscardUnknown

func (m *TBRequest) XXX_DiscardUnknown()

func (*TBRequest) XXX_Marshal

func (m *TBRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TBRequest) XXX_Merge

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

func (*TBRequest) XXX_Size

func (m *TBRequest) XXX_Size() int

func (*TBRequest) XXX_Unmarshal

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

type TBResponse

type TBResponse struct {
	Lines                []*TBLine `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*TBResponse) Descriptor

func (*TBResponse) Descriptor() ([]byte, []int)

func (*TBResponse) GetLines

func (m *TBResponse) GetLines() []*TBLine

func (*TBResponse) ProtoMessage

func (*TBResponse) ProtoMessage()

func (*TBResponse) Reset

func (m *TBResponse) Reset()

func (*TBResponse) String

func (m *TBResponse) String() string

func (*TBResponse) XXX_DiscardUnknown

func (m *TBResponse) XXX_DiscardUnknown()

func (*TBResponse) XXX_Marshal

func (m *TBResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TBResponse) XXX_Merge

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

func (*TBResponse) XXX_Size

func (m *TBResponse) XXX_Size() int

func (*TBResponse) XXX_Unmarshal

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

type TagRequest

type TagRequest struct {
	Account              string   `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Signature            string   `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TagRequest) Descriptor

func (*TagRequest) Descriptor() ([]byte, []int)

func (*TagRequest) GetAccount

func (m *TagRequest) GetAccount() string

func (*TagRequest) GetSignature

func (m *TagRequest) GetSignature() string

func (*TagRequest) GetTag

func (m *TagRequest) GetTag() string

func (*TagRequest) ProtoMessage

func (*TagRequest) ProtoMessage()

func (*TagRequest) Reset

func (m *TagRequest) Reset()

func (*TagRequest) String

func (m *TagRequest) String() string

func (*TagRequest) XXX_DiscardUnknown

func (m *TagRequest) XXX_DiscardUnknown()

func (*TagRequest) XXX_Marshal

func (m *TagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TagRequest) XXX_Merge

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

func (*TagRequest) XXX_Size

func (m *TagRequest) XXX_Size() int

func (*TagRequest) XXX_Unmarshal

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

type TransactionRequest

type TransactionRequest struct {
	Date                 string      `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
	Description          string      `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Lines                []*LineItem `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
	Signature            string      `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*TransactionRequest) Descriptor

func (*TransactionRequest) Descriptor() ([]byte, []int)

func (*TransactionRequest) GetDate

func (m *TransactionRequest) GetDate() string

func (*TransactionRequest) GetDescription

func (m *TransactionRequest) GetDescription() string

func (*TransactionRequest) GetLines

func (m *TransactionRequest) GetLines() []*LineItem

func (*TransactionRequest) GetSignature

func (m *TransactionRequest) GetSignature() 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 TransactionResponse

type TransactionResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionResponse) Descriptor

func (*TransactionResponse) Descriptor() ([]byte, []int)

func (*TransactionResponse) GetMessage

func (m *TransactionResponse) GetMessage() string

func (*TransactionResponse) ProtoMessage

func (*TransactionResponse) ProtoMessage()

func (*TransactionResponse) Reset

func (m *TransactionResponse) Reset()

func (*TransactionResponse) String

func (m *TransactionResponse) String() string

func (*TransactionResponse) XXX_DiscardUnknown

func (m *TransactionResponse) XXX_DiscardUnknown()

func (*TransactionResponse) XXX_Marshal

func (m *TransactionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TransactionResponse) XXX_Merge

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

func (*TransactionResponse) XXX_Size

func (m *TransactionResponse) XXX_Size() int

func (*TransactionResponse) XXX_Unmarshal

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

type TransactorClient

type TransactorClient interface {
	NodeVersion(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
	AddTransaction(ctx context.Context, in *TransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	DeleteTransaction(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	VoidTransaction(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	AddTag(ctx context.Context, in *TagRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	AddCurrency(ctx context.Context, in *CurrencyRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	DeleteCurrency(ctx context.Context, in *DeleteCurrencyRequest, opts ...grpc.CallOption) (*TransactionResponse, error)
	GetTB(ctx context.Context, in *TBRequest, opts ...grpc.CallOption) (*TBResponse, error)
}

TransactorClient is the client API for Transactor service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTransactorClient

func NewTransactorClient(cc grpc.ClientConnInterface) TransactorClient

type TransactorServer

TransactorServer is the server API for Transactor service.

type UnimplementedTransactorServer

type UnimplementedTransactorServer struct {
}

UnimplementedTransactorServer can be embedded to have forward compatible implementations.

func (*UnimplementedTransactorServer) AddCurrency added in v0.3.0

func (*UnimplementedTransactorServer) AddTag

func (*UnimplementedTransactorServer) AddTransaction

func (*UnimplementedTransactorServer) DeleteCurrency added in v0.3.0

func (*UnimplementedTransactorServer) DeleteTag

func (*UnimplementedTransactorServer) DeleteTransaction

func (*UnimplementedTransactorServer) GetTB

func (*UnimplementedTransactorServer) NodeVersion

func (*UnimplementedTransactorServer) VoidTransaction added in v0.3.0

type VersionRequest

type VersionRequest struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VersionRequest) Descriptor

func (*VersionRequest) Descriptor() ([]byte, []int)

func (*VersionRequest) GetMessage

func (m *VersionRequest) GetMessage() string

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) Reset

func (m *VersionRequest) Reset()

func (*VersionRequest) String

func (m *VersionRequest) String() string

func (*VersionRequest) XXX_DiscardUnknown

func (m *VersionRequest) XXX_DiscardUnknown()

func (*VersionRequest) XXX_Marshal

func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionRequest) XXX_Merge

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

func (*VersionRequest) XXX_Size

func (m *VersionRequest) XXX_Size() int

func (*VersionRequest) XXX_Unmarshal

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

type VersionResponse

type VersionResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VersionResponse) Descriptor

func (*VersionResponse) Descriptor() ([]byte, []int)

func (*VersionResponse) GetMessage

func (m *VersionResponse) GetMessage() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) Reset

func (m *VersionResponse) Reset()

func (*VersionResponse) String

func (m *VersionResponse) String() string

func (*VersionResponse) XXX_DiscardUnknown

func (m *VersionResponse) XXX_DiscardUnknown()

func (*VersionResponse) XXX_Marshal

func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VersionResponse) XXX_Merge

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

func (*VersionResponse) XXX_Size

func (m *VersionResponse) XXX_Size() int

func (*VersionResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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