Documentation ¶
Overview ¶
Package proto is a generated twirp stub package. This code was generated with github.com/twitchtv/twirp/protoc-gen-twirp v5.10.1.
It is generated from these files:
service.proto
Index ¶
- Constants
- Variables
- func WriteError(resp http.ResponseWriter, err error)
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (m *Asset) GetAssetId() string
- func (m *Asset) GetLogo() string
- func (m *Asset) GetMax() string
- func (m *Asset) GetMin() string
- func (m *Asset) GetName() string
- func (m *Asset) GetPrecision() int32
- func (m *Asset) GetSymbol() string
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) String() string
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type Book
- func (*Book) Descriptor() ([]byte, []int)
- func (m *Book) GetBrokerId() string
- func (m *Book) GetCreatedAt() *timestamp.Timestamp
- func (m *Book) GetDiscount() string
- func (m *Book) GetFillSymbol() string
- func (m *Book) GetFunds() string
- func (m *Book) GetId() string
- func (m *Book) GetMemo() string
- func (m *Book) GetMerchantId() string
- func (m *Book) GetPaySymbol() string
- func (m *Book) GetPayer() string
- func (m *Book) GetPrice() string
- func (m *Book) GetReceiptId() string
- func (m *Book) GetSnapshotId() string
- func (m *Book) GetState() Book_State
- func (m *Book) GetStrategy() Strategy
- func (m *Book) GetTraceId() string
- func (m *Book) GetUserId() string
- func (*Book) ProtoMessage()
- func (m *Book) Reset()
- func (m *Book) String() string
- func (m *Book) XXX_DiscardUnknown()
- func (m *Book) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Book) XXX_Merge(src proto.Message)
- func (m *Book) XXX_Size() int
- func (m *Book) XXX_Unmarshal(b []byte) error
- type Book_State
- type Depth
- func (*Depth) Descriptor() ([]byte, []int)
- func (m *Depth) GetAsks() []*Depth_Order
- func (m *Depth) GetBids() []*Depth_Order
- func (m *Depth) GetUpdatedAt() *timestamp.Timestamp
- func (m *Depth) GetVersion() string
- func (*Depth) ProtoMessage()
- func (m *Depth) Reset()
- func (m *Depth) String() string
- func (m *Depth) XXX_DiscardUnknown()
- func (m *Depth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Depth) XXX_Merge(src proto.Message)
- func (m *Depth) XXX_Size() int
- func (m *Depth) XXX_Unmarshal(b []byte) error
- type Depth_Order
- func (*Depth_Order) Descriptor() ([]byte, []int)
- func (m *Depth_Order) GetAmount() string
- func (m *Depth_Order) GetPrice() string
- func (*Depth_Order) ProtoMessage()
- func (m *Depth_Order) Reset()
- func (m *Depth_Order) String() string
- func (m *Depth_Order) XXX_DiscardUnknown()
- func (m *Depth_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Depth_Order) XXX_Merge(src proto.Message)
- func (m *Depth_Order) XXX_Size() int
- func (m *Depth_Order) XXX_Unmarshal(b []byte) error
- type HTTPClient
- type MarketService
- type MarketServiceReq
- func (*MarketServiceReq) Descriptor() ([]byte, []int)
- func (*MarketServiceReq) ProtoMessage()
- func (m *MarketServiceReq) Reset()
- func (m *MarketServiceReq) String() string
- func (m *MarketServiceReq) XXX_DiscardUnknown()
- func (m *MarketServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceReq) XXX_Merge(src proto.Message)
- func (m *MarketServiceReq) XXX_Size() int
- func (m *MarketServiceReq) XXX_Unmarshal(b []byte) error
- type MarketServiceReq_ListPairs
- func (*MarketServiceReq_ListPairs) Descriptor() ([]byte, []int)
- func (*MarketServiceReq_ListPairs) ProtoMessage()
- func (m *MarketServiceReq_ListPairs) Reset()
- func (m *MarketServiceReq_ListPairs) String() string
- func (m *MarketServiceReq_ListPairs) XXX_DiscardUnknown()
- func (m *MarketServiceReq_ListPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceReq_ListPairs) XXX_Merge(src proto.Message)
- func (m *MarketServiceReq_ListPairs) XXX_Size() int
- func (m *MarketServiceReq_ListPairs) XXX_Unmarshal(b []byte) error
- type MarketServiceReq_ReadDepth
- func (*MarketServiceReq_ReadDepth) Descriptor() ([]byte, []int)
- func (m *MarketServiceReq_ReadDepth) GetSymbol() string
- func (*MarketServiceReq_ReadDepth) ProtoMessage()
- func (m *MarketServiceReq_ReadDepth) Reset()
- func (m *MarketServiceReq_ReadDepth) String() string
- func (m *MarketServiceReq_ReadDepth) XXX_DiscardUnknown()
- func (m *MarketServiceReq_ReadDepth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceReq_ReadDepth) XXX_Merge(src proto.Message)
- func (m *MarketServiceReq_ReadDepth) XXX_Size() int
- func (m *MarketServiceReq_ReadDepth) XXX_Unmarshal(b []byte) error
- type MarketServiceReq_ReadPair
- func (*MarketServiceReq_ReadPair) Descriptor() ([]byte, []int)
- func (m *MarketServiceReq_ReadPair) GetSymbol() string
- func (*MarketServiceReq_ReadPair) ProtoMessage()
- func (m *MarketServiceReq_ReadPair) Reset()
- func (m *MarketServiceReq_ReadPair) String() string
- func (m *MarketServiceReq_ReadPair) XXX_DiscardUnknown()
- func (m *MarketServiceReq_ReadPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceReq_ReadPair) XXX_Merge(src proto.Message)
- func (m *MarketServiceReq_ReadPair) XXX_Size() int
- func (m *MarketServiceReq_ReadPair) XXX_Unmarshal(b []byte) error
- type MarketServiceResp
- func (*MarketServiceResp) Descriptor() ([]byte, []int)
- func (*MarketServiceResp) ProtoMessage()
- func (m *MarketServiceResp) Reset()
- func (m *MarketServiceResp) String() string
- func (m *MarketServiceResp) XXX_DiscardUnknown()
- func (m *MarketServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceResp) XXX_Merge(src proto.Message)
- func (m *MarketServiceResp) XXX_Size() int
- func (m *MarketServiceResp) XXX_Unmarshal(b []byte) error
- type MarketServiceResp_ListPairs
- func (*MarketServiceResp_ListPairs) Descriptor() ([]byte, []int)
- func (m *MarketServiceResp_ListPairs) GetPairs() []*Pair
- func (*MarketServiceResp_ListPairs) ProtoMessage()
- func (m *MarketServiceResp_ListPairs) Reset()
- func (m *MarketServiceResp_ListPairs) String() string
- func (m *MarketServiceResp_ListPairs) XXX_DiscardUnknown()
- func (m *MarketServiceResp_ListPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketServiceResp_ListPairs) XXX_Merge(src proto.Message)
- func (m *MarketServiceResp_ListPairs) XXX_Size() int
- func (m *MarketServiceResp_ListPairs) XXX_Unmarshal(b []byte) error
- type MerchantService
- type MerchantServiceReq
- func (*MerchantServiceReq) Descriptor() ([]byte, []int)
- func (*MerchantServiceReq) ProtoMessage()
- func (m *MerchantServiceReq) Reset()
- func (m *MerchantServiceReq) String() string
- func (m *MerchantServiceReq) XXX_DiscardUnknown()
- func (m *MerchantServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq) XXX_Size() int
- func (m *MerchantServiceReq) XXX_Unmarshal(b []byte) error
- type MerchantServiceReq_CancelOrder
- func (*MerchantServiceReq_CancelOrder) Descriptor() ([]byte, []int)
- func (m *MerchantServiceReq_CancelOrder) GetTraceId() string
- func (*MerchantServiceReq_CancelOrder) ProtoMessage()
- func (m *MerchantServiceReq_CancelOrder) Reset()
- func (m *MerchantServiceReq_CancelOrder) String() string
- func (m *MerchantServiceReq_CancelOrder) XXX_DiscardUnknown()
- func (m *MerchantServiceReq_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq_CancelOrder) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq_CancelOrder) XXX_Size() int
- func (m *MerchantServiceReq_CancelOrder) XXX_Unmarshal(b []byte) error
- type MerchantServiceReq_CreateBook
- func (*MerchantServiceReq_CreateBook) Descriptor() ([]byte, []int)
- func (m *MerchantServiceReq_CreateBook) GetReceiptId() string
- func (m *MerchantServiceReq_CreateBook) GetTraceId() string
- func (m *MerchantServiceReq_CreateBook) GetUserId() string
- func (*MerchantServiceReq_CreateBook) ProtoMessage()
- func (m *MerchantServiceReq_CreateBook) Reset()
- func (m *MerchantServiceReq_CreateBook) String() string
- func (m *MerchantServiceReq_CreateBook) XXX_DiscardUnknown()
- func (m *MerchantServiceReq_CreateBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq_CreateBook) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq_CreateBook) XXX_Size() int
- func (m *MerchantServiceReq_CreateBook) XXX_Unmarshal(b []byte) error
- type MerchantServiceReq_ListOrderReports
- func (*MerchantServiceReq_ListOrderReports) Descriptor() ([]byte, []int)
- func (m *MerchantServiceReq_ListOrderReports) GetCursor() string
- func (m *MerchantServiceReq_ListOrderReports) GetDate() string
- func (m *MerchantServiceReq_ListOrderReports) GetLimit() int64
- func (*MerchantServiceReq_ListOrderReports) ProtoMessage()
- func (m *MerchantServiceReq_ListOrderReports) Reset()
- func (m *MerchantServiceReq_ListOrderReports) String() string
- func (m *MerchantServiceReq_ListOrderReports) XXX_DiscardUnknown()
- func (m *MerchantServiceReq_ListOrderReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq_ListOrderReports) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq_ListOrderReports) XXX_Size() int
- func (m *MerchantServiceReq_ListOrderReports) XXX_Unmarshal(b []byte) error
- type MerchantServiceReq_ListOrders
- func (*MerchantServiceReq_ListOrders) Descriptor() ([]byte, []int)
- func (m *MerchantServiceReq_ListOrders) GetCursor() string
- func (m *MerchantServiceReq_ListOrders) GetLimit() int64
- func (m *MerchantServiceReq_ListOrders) GetOrder() SortOrder
- func (m *MerchantServiceReq_ListOrders) GetSide() string
- func (m *MerchantServiceReq_ListOrders) GetState() string
- func (m *MerchantServiceReq_ListOrders) GetStrategy() string
- func (m *MerchantServiceReq_ListOrders) GetSymbol() string
- func (m *MerchantServiceReq_ListOrders) GetUserId() string
- func (*MerchantServiceReq_ListOrders) ProtoMessage()
- func (m *MerchantServiceReq_ListOrders) Reset()
- func (m *MerchantServiceReq_ListOrders) String() string
- func (m *MerchantServiceReq_ListOrders) XXX_DiscardUnknown()
- func (m *MerchantServiceReq_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq_ListOrders) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq_ListOrders) XXX_Size() int
- func (m *MerchantServiceReq_ListOrders) XXX_Unmarshal(b []byte) error
- type MerchantServiceReq_ReadOrder
- func (*MerchantServiceReq_ReadOrder) Descriptor() ([]byte, []int)
- func (m *MerchantServiceReq_ReadOrder) GetTraceId() string
- func (*MerchantServiceReq_ReadOrder) ProtoMessage()
- func (m *MerchantServiceReq_ReadOrder) Reset()
- func (m *MerchantServiceReq_ReadOrder) String() string
- func (m *MerchantServiceReq_ReadOrder) XXX_DiscardUnknown()
- func (m *MerchantServiceReq_ReadOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceReq_ReadOrder) XXX_Merge(src proto.Message)
- func (m *MerchantServiceReq_ReadOrder) XXX_Size() int
- func (m *MerchantServiceReq_ReadOrder) XXX_Unmarshal(b []byte) error
- type MerchantServiceResp
- func (*MerchantServiceResp) Descriptor() ([]byte, []int)
- func (*MerchantServiceResp) ProtoMessage()
- func (m *MerchantServiceResp) Reset()
- func (m *MerchantServiceResp) String() string
- func (m *MerchantServiceResp) XXX_DiscardUnknown()
- func (m *MerchantServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceResp) XXX_Merge(src proto.Message)
- func (m *MerchantServiceResp) XXX_Size() int
- func (m *MerchantServiceResp) XXX_Unmarshal(b []byte) error
- type MerchantServiceResp_CancelOrder
- func (*MerchantServiceResp_CancelOrder) Descriptor() ([]byte, []int)
- func (*MerchantServiceResp_CancelOrder) ProtoMessage()
- func (m *MerchantServiceResp_CancelOrder) Reset()
- func (m *MerchantServiceResp_CancelOrder) String() string
- func (m *MerchantServiceResp_CancelOrder) XXX_DiscardUnknown()
- func (m *MerchantServiceResp_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceResp_CancelOrder) XXX_Merge(src proto.Message)
- func (m *MerchantServiceResp_CancelOrder) XXX_Size() int
- func (m *MerchantServiceResp_CancelOrder) XXX_Unmarshal(b []byte) error
- type MerchantServiceResp_ListOrderReports
- func (*MerchantServiceResp_ListOrderReports) Descriptor() ([]byte, []int)
- func (m *MerchantServiceResp_ListOrderReports) GetPagination() *Pagination
- func (m *MerchantServiceResp_ListOrderReports) GetReports() []*OrderReport
- func (*MerchantServiceResp_ListOrderReports) ProtoMessage()
- func (m *MerchantServiceResp_ListOrderReports) Reset()
- func (m *MerchantServiceResp_ListOrderReports) String() string
- func (m *MerchantServiceResp_ListOrderReports) XXX_DiscardUnknown()
- func (m *MerchantServiceResp_ListOrderReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceResp_ListOrderReports) XXX_Merge(src proto.Message)
- func (m *MerchantServiceResp_ListOrderReports) XXX_Size() int
- func (m *MerchantServiceResp_ListOrderReports) XXX_Unmarshal(b []byte) error
- type MerchantServiceResp_ListOrders
- func (*MerchantServiceResp_ListOrders) Descriptor() ([]byte, []int)
- func (m *MerchantServiceResp_ListOrders) GetOrders() []*Order
- func (m *MerchantServiceResp_ListOrders) GetPagination() *Pagination
- func (*MerchantServiceResp_ListOrders) ProtoMessage()
- func (m *MerchantServiceResp_ListOrders) Reset()
- func (m *MerchantServiceResp_ListOrders) String() string
- func (m *MerchantServiceResp_ListOrders) XXX_DiscardUnknown()
- func (m *MerchantServiceResp_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MerchantServiceResp_ListOrders) XXX_Merge(src proto.Message)
- func (m *MerchantServiceResp_ListOrders) XXX_Size() int
- func (m *MerchantServiceResp_ListOrders) XXX_Unmarshal(b []byte) error
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetAveragePrice() string
- func (m *Order) GetCancelledAt() *timestamp.Timestamp
- func (m *Order) GetCreatedAt() *timestamp.Timestamp
- func (m *Order) GetDiscount() string
- func (m *Order) GetExtraFilledAmount() string
- func (m *Order) GetFeeAmount() string
- func (m *Order) GetFillSymbol() string
- func (m *Order) GetFilledAmount() string
- func (m *Order) GetFilledFunds() string
- func (m *Order) GetFunds() string
- func (m *Order) GetId() string
- func (m *Order) GetMerchantId() string
- func (m *Order) GetPaySymbol() string
- func (m *Order) GetPrice() string
- func (m *Order) GetSide() Side
- func (m *Order) GetState() Order_State
- func (m *Order) GetStrategy() Strategy
- func (m *Order) GetSymbol() string
- func (m *Order) GetUpdatedAt() *timestamp.Timestamp
- func (m *Order) GetUserId() string
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) String() string
- func (m *Order) XXX_DiscardUnknown()
- func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Order) XXX_Merge(src proto.Message)
- func (m *Order) XXX_Size() int
- func (m *Order) XXX_Unmarshal(b []byte) error
- type OrderReport
- func (*OrderReport) Descriptor() ([]byte, []int)
- func (m *OrderReport) GetCount() int32
- func (m *OrderReport) GetCreatedAt() *timestamp.Timestamp
- func (m *OrderReport) GetDate() string
- func (m *OrderReport) GetFeeAmount() string
- func (m *OrderReport) GetFeeAsset() string
- func (m *OrderReport) GetFilledAmount() string
- func (m *OrderReport) GetId() string
- func (m *OrderReport) GetMerchantId() string
- func (m *OrderReport) GetObtainedAmount() string
- func (m *OrderReport) GetSide() string
- func (m *OrderReport) GetSymbol() string
- func (m *OrderReport) GetUserId() string
- func (*OrderReport) ProtoMessage()
- func (m *OrderReport) Reset()
- func (m *OrderReport) String() string
- func (m *OrderReport) XXX_DiscardUnknown()
- func (m *OrderReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderReport) XXX_Merge(src proto.Message)
- func (m *OrderReport) XXX_Size() int
- func (m *OrderReport) XXX_Unmarshal(b []byte) error
- type Order_State
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)
- func (m *Pagination) GetHasNext() bool
- func (m *Pagination) GetNextCursor() string
- func (*Pagination) ProtoMessage()
- func (m *Pagination) Reset()
- func (m *Pagination) String() string
- func (m *Pagination) XXX_DiscardUnknown()
- func (m *Pagination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pagination) XXX_Merge(src proto.Message)
- func (m *Pagination) XXX_Size() int
- func (m *Pagination) XXX_Unmarshal(b []byte) error
- type Pair
- func (*Pair) Descriptor() ([]byte, []int)
- func (m *Pair) GetBase() *Asset
- func (m *Pair) GetBasePrecision() int32
- func (m *Pair) GetChange() string
- func (m *Pair) GetDisplaySymbol() string
- func (m *Pair) GetExchange() string
- func (m *Pair) GetPrice() string
- func (m *Pair) GetPriceBuy() string
- func (m *Pair) GetPricePrecision() int32
- func (m *Pair) GetPriceSell() string
- func (m *Pair) GetQuote() *Asset
- func (m *Pair) GetQuotePrecision() int32
- func (m *Pair) GetState() Pair_State
- func (m *Pair) GetStrategies() []string
- func (m *Pair) GetSymbol() string
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) String() string
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pair) XXX_Merge(src proto.Message)
- func (m *Pair) XXX_Size() int
- func (m *Pair) XXX_Unmarshal(b []byte) error
- type Pair_State
- type Side
- type SortOrder
- type Strategy
- type TwirpServer
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetBrokerId() string
- func (m *User) GetId() string
- func (m *User) GetName() string
- func (m *User) GetRole() string
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserService
- type UserServiceReq
- func (*UserServiceReq) Descriptor() ([]byte, []int)
- func (*UserServiceReq) ProtoMessage()
- func (m *UserServiceReq) Reset()
- func (m *UserServiceReq) String() string
- func (m *UserServiceReq) XXX_DiscardUnknown()
- func (m *UserServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceReq) XXX_Merge(src proto.Message)
- func (m *UserServiceReq) XXX_Size() int
- func (m *UserServiceReq) XXX_Unmarshal(b []byte) error
- type UserServiceReq_CancelOrder
- func (*UserServiceReq_CancelOrder) Descriptor() ([]byte, []int)
- func (m *UserServiceReq_CancelOrder) GetTraceId() string
- func (*UserServiceReq_CancelOrder) ProtoMessage()
- func (m *UserServiceReq_CancelOrder) Reset()
- func (m *UserServiceReq_CancelOrder) String() string
- func (m *UserServiceReq_CancelOrder) XXX_DiscardUnknown()
- func (m *UserServiceReq_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceReq_CancelOrder) XXX_Merge(src proto.Message)
- func (m *UserServiceReq_CancelOrder) XXX_Size() int
- func (m *UserServiceReq_CancelOrder) XXX_Unmarshal(b []byte) error
- type UserServiceReq_ListOrders
- func (*UserServiceReq_ListOrders) Descriptor() ([]byte, []int)
- func (m *UserServiceReq_ListOrders) GetCursor() string
- func (m *UserServiceReq_ListOrders) GetLimit() int64
- func (m *UserServiceReq_ListOrders) GetMerchantId() string
- func (m *UserServiceReq_ListOrders) GetOrder() SortOrder
- func (m *UserServiceReq_ListOrders) GetSide() string
- func (m *UserServiceReq_ListOrders) GetState() string
- func (m *UserServiceReq_ListOrders) GetStrategy() string
- func (m *UserServiceReq_ListOrders) GetSymbol() string
- func (*UserServiceReq_ListOrders) ProtoMessage()
- func (m *UserServiceReq_ListOrders) Reset()
- func (m *UserServiceReq_ListOrders) String() string
- func (m *UserServiceReq_ListOrders) XXX_DiscardUnknown()
- func (m *UserServiceReq_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceReq_ListOrders) XXX_Merge(src proto.Message)
- func (m *UserServiceReq_ListOrders) XXX_Size() int
- func (m *UserServiceReq_ListOrders) XXX_Unmarshal(b []byte) error
- type UserServiceReq_Me
- func (*UserServiceReq_Me) Descriptor() ([]byte, []int)
- func (*UserServiceReq_Me) ProtoMessage()
- func (m *UserServiceReq_Me) Reset()
- func (m *UserServiceReq_Me) String() string
- func (m *UserServiceReq_Me) XXX_DiscardUnknown()
- func (m *UserServiceReq_Me) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceReq_Me) XXX_Merge(src proto.Message)
- func (m *UserServiceReq_Me) XXX_Size() int
- func (m *UserServiceReq_Me) XXX_Unmarshal(b []byte) error
- type UserServiceReq_ReadOrder
- func (*UserServiceReq_ReadOrder) Descriptor() ([]byte, []int)
- func (m *UserServiceReq_ReadOrder) GetTraceId() string
- func (*UserServiceReq_ReadOrder) ProtoMessage()
- func (m *UserServiceReq_ReadOrder) Reset()
- func (m *UserServiceReq_ReadOrder) String() string
- func (m *UserServiceReq_ReadOrder) XXX_DiscardUnknown()
- func (m *UserServiceReq_ReadOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceReq_ReadOrder) XXX_Merge(src proto.Message)
- func (m *UserServiceReq_ReadOrder) XXX_Size() int
- func (m *UserServiceReq_ReadOrder) XXX_Unmarshal(b []byte) error
- type UserServiceResp
- func (*UserServiceResp) Descriptor() ([]byte, []int)
- func (*UserServiceResp) ProtoMessage()
- func (m *UserServiceResp) Reset()
- func (m *UserServiceResp) String() string
- func (m *UserServiceResp) XXX_DiscardUnknown()
- func (m *UserServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceResp) XXX_Merge(src proto.Message)
- func (m *UserServiceResp) XXX_Size() int
- func (m *UserServiceResp) XXX_Unmarshal(b []byte) error
- type UserServiceResp_CancelOrder
- func (*UserServiceResp_CancelOrder) Descriptor() ([]byte, []int)
- func (*UserServiceResp_CancelOrder) ProtoMessage()
- func (m *UserServiceResp_CancelOrder) Reset()
- func (m *UserServiceResp_CancelOrder) String() string
- func (m *UserServiceResp_CancelOrder) XXX_DiscardUnknown()
- func (m *UserServiceResp_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceResp_CancelOrder) XXX_Merge(src proto.Message)
- func (m *UserServiceResp_CancelOrder) XXX_Size() int
- func (m *UserServiceResp_CancelOrder) XXX_Unmarshal(b []byte) error
- type UserServiceResp_ListOrders
- func (*UserServiceResp_ListOrders) Descriptor() ([]byte, []int)
- func (m *UserServiceResp_ListOrders) GetOrders() []*Order
- func (m *UserServiceResp_ListOrders) GetPagination() *Pagination
- func (*UserServiceResp_ListOrders) ProtoMessage()
- func (m *UserServiceResp_ListOrders) Reset()
- func (m *UserServiceResp_ListOrders) String() string
- func (m *UserServiceResp_ListOrders) XXX_DiscardUnknown()
- func (m *UserServiceResp_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserServiceResp_ListOrders) XXX_Merge(src proto.Message)
- func (m *UserServiceResp_ListOrders) XXX_Size() int
- func (m *UserServiceResp_ListOrders) XXX_Unmarshal(b []byte) error
Constants ¶
const MarketServicePathPrefix = "/twirp/fox.atm.service.MarketService/"
MarketServicePathPrefix is used for all URL paths on a twirp MarketService server. Requests are always: POST MarketServicePathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.
const MerchantServicePathPrefix = "/twirp/fox.atm.service.MerchantService/"
MerchantServicePathPrefix is used for all URL paths on a twirp MerchantService server. Requests are always: POST MerchantServicePathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.
const UserServicePathPrefix = "/twirp/fox.atm.service.UserService/"
UserServicePathPrefix is used for all URL paths on a twirp UserService server. Requests are always: POST UserServicePathPrefix/method It can be used in an HTTP mux to route twirp requests along with non-twirp requests on other routes.
Variables ¶
var Book_State_name = map[int32]string{
0: "Pending",
1: "Paid",
2: "Done",
}
var Book_State_value = map[string]int32{
"Pending": 0,
"Paid": 1,
"Done": 2,
}
var Order_State_name = map[int32]string{
0: "Trading",
1: "Filled",
2: "Cancelled",
3: "Rejected",
4: "Timeout",
}
var Order_State_value = map[string]int32{
"Trading": 0,
"Filled": 1,
"Cancelled": 2,
"Rejected": 3,
"Timeout": 4,
}
var Pair_State_name = map[int32]string{
0: "Trading",
1: "Break",
}
var Pair_State_value = map[string]int32{
"Trading": 0,
"Break": 1,
}
var Side_name = map[int32]string{
0: "Ask",
1: "Bid",
}
var Side_value = map[string]int32{
"Ask": 0,
"Bid": 1,
}
var SortOrder_name = map[int32]string{
0: "DESC",
1: "ASC",
}
var SortOrder_value = map[string]int32{
"DESC": 0,
"ASC": 1,
}
var Strategy_name = map[int32]string{
0: "Market",
1: "Limit",
2: "Follow",
3: "Flex",
}
var Strategy_value = map[string]int32{
"Market": 0,
"Limit": 1,
"Follow": 2,
"Flex": 3,
}
Functions ¶
func WriteError ¶
func WriteError(resp http.ResponseWriter, err error)
WriteError writes an HTTP response with a valid Twirp error format (code, msg, meta). Useful outside of the Twirp server (e.g. http middleware), but does not trigger hooks. If err is not a twirp.Error, it will get wrapped with twirp.InternalErrorWith(err)
Types ¶
type Asset ¶
type Asset struct { AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` Logo string `protobuf:"bytes,3,opt,name=logo,proto3" json:"logo,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Precision int32 `protobuf:"varint,5,opt,name=precision,proto3" json:"precision,omitempty"` // 最小下单量 Min string `protobuf:"bytes,6,opt,name=min,proto3" json:"min,omitempty"` // 最大下单量 Max string `protobuf:"bytes,7,opt,name=max,proto3" json:"max,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Asset) Descriptor ¶
func (*Asset) GetAssetId ¶
func (*Asset) GetPrecision ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶
func (*Asset) XXX_Unmarshal ¶
type Book ¶
type Book struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` State Book_State `protobuf:"varint,3,opt,name=state,proto3,enum=fox.atm.service.Book_State" json:"state,omitempty"` MerchantId string `protobuf:"bytes,4,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` BrokerId string `protobuf:"bytes,5,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"` TraceId string `protobuf:"bytes,6,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` UserId string `protobuf:"bytes,7,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Payer string `protobuf:"bytes,8,opt,name=payer,proto3" json:"payer,omitempty"` SnapshotId string `protobuf:"bytes,9,opt,name=snapshot_id,json=snapshotId,proto3" json:"snapshot_id,omitempty"` ReceiptId string `protobuf:"bytes,10,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` Memo string `protobuf:"bytes,11,opt,name=memo,proto3" json:"memo,omitempty"` Funds string `protobuf:"bytes,12,opt,name=funds,proto3" json:"funds,omitempty"` PaySymbol string `protobuf:"bytes,13,opt,name=pay_symbol,json=paySymbol,proto3" json:"pay_symbol,omitempty"` FillSymbol string `protobuf:"bytes,14,opt,name=fill_symbol,json=fillSymbol,proto3" json:"fill_symbol,omitempty"` Strategy Strategy `protobuf:"varint,15,opt,name=strategy,proto3,enum=fox.atm.service.Strategy" json:"strategy,omitempty"` Price string `protobuf:"bytes,16,opt,name=price,proto3" json:"price,omitempty"` Discount string `protobuf:"bytes,17,opt,name=discount,proto3" json:"discount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Book) Descriptor ¶
func (*Book) GetBrokerId ¶
func (*Book) GetCreatedAt ¶
func (*Book) GetDiscount ¶
func (*Book) GetFillSymbol ¶
func (*Book) GetMerchantId ¶
func (*Book) GetPaySymbol ¶
func (*Book) GetReceiptId ¶
func (*Book) GetSnapshotId ¶
func (*Book) GetState ¶
func (m *Book) GetState() Book_State
func (*Book) GetStrategy ¶
func (*Book) GetTraceId ¶
func (*Book) ProtoMessage ¶
func (*Book) ProtoMessage()
func (*Book) XXX_DiscardUnknown ¶
func (m *Book) XXX_DiscardUnknown()
func (*Book) XXX_Unmarshal ¶
type Book_State ¶
type Book_State int32
const ( Book_Pending Book_State = 0 Book_Paid Book_State = 1 Book_Done Book_State = 2 )
func (Book_State) EnumDescriptor ¶
func (Book_State) EnumDescriptor() ([]byte, []int)
func (Book_State) String ¶
func (x Book_State) String() string
type Depth ¶
type Depth struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Asks []*Depth_Order `protobuf:"bytes,3,rep,name=asks,proto3" json:"asks,omitempty"` Bids []*Depth_Order `protobuf:"bytes,4,rep,name=bids,proto3" json:"bids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Depth) Descriptor ¶
func (*Depth) GetAsks ¶
func (m *Depth) GetAsks() []*Depth_Order
func (*Depth) GetBids ¶
func (m *Depth) GetBids() []*Depth_Order
func (*Depth) GetUpdatedAt ¶
func (*Depth) GetVersion ¶
func (*Depth) ProtoMessage ¶
func (*Depth) ProtoMessage()
func (*Depth) XXX_DiscardUnknown ¶
func (m *Depth) XXX_DiscardUnknown()
func (*Depth) XXX_Marshal ¶
func (*Depth) XXX_Unmarshal ¶
type Depth_Order ¶
type Depth_Order struct { Price string `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Depth_Order) Descriptor ¶
func (*Depth_Order) Descriptor() ([]byte, []int)
func (*Depth_Order) GetAmount ¶
func (m *Depth_Order) GetAmount() string
func (*Depth_Order) GetPrice ¶
func (m *Depth_Order) GetPrice() string
func (*Depth_Order) ProtoMessage ¶
func (*Depth_Order) ProtoMessage()
func (*Depth_Order) Reset ¶
func (m *Depth_Order) Reset()
func (*Depth_Order) String ¶
func (m *Depth_Order) String() string
func (*Depth_Order) XXX_DiscardUnknown ¶
func (m *Depth_Order) XXX_DiscardUnknown()
func (*Depth_Order) XXX_Marshal ¶
func (m *Depth_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Depth_Order) XXX_Merge ¶
func (m *Depth_Order) XXX_Merge(src proto.Message)
func (*Depth_Order) XXX_Size ¶
func (m *Depth_Order) XXX_Size() int
func (*Depth_Order) XXX_Unmarshal ¶
func (m *Depth_Order) XXX_Unmarshal(b []byte) error
type HTTPClient ¶
HTTPClient is the interface used by generated clients to send HTTP requests. It is fulfilled by *(net/http).Client, which is sufficient for most users. Users can provide their own implementation for special retry policies.
HTTPClient implementations should not follow redirects. Redirects are automatically disabled if *(net/http).Client is passed to client constructors. See the withoutRedirects function in this file for more details.
type MarketService ¶
type MarketService interface { // 获取交易对列表 ListPairs(context.Context, *MarketServiceReq_ListPairs) (*MarketServiceResp_ListPairs, error) // 获取交易对 ReadPair(context.Context, *MarketServiceReq_ReadPair) (*Pair, error) // 获取交易对深度 ReadDepth(context.Context, *MarketServiceReq_ReadDepth) (*Depth, error) }
func NewMarketServiceJSONClient ¶
func NewMarketServiceJSONClient(addr string, client HTTPClient, opts ...twirp.ClientOption) MarketService
NewMarketServiceJSONClient creates a JSON client that implements the MarketService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewMarketServiceProtobufClient ¶
func NewMarketServiceProtobufClient(addr string, client HTTPClient, opts ...twirp.ClientOption) MarketService
NewMarketServiceProtobufClient creates a Protobuf client that implements the MarketService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type MarketServiceReq ¶
type MarketServiceReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceReq) Descriptor ¶
func (*MarketServiceReq) Descriptor() ([]byte, []int)
func (*MarketServiceReq) ProtoMessage ¶
func (*MarketServiceReq) ProtoMessage()
func (*MarketServiceReq) Reset ¶
func (m *MarketServiceReq) Reset()
func (*MarketServiceReq) String ¶
func (m *MarketServiceReq) String() string
func (*MarketServiceReq) XXX_DiscardUnknown ¶
func (m *MarketServiceReq) XXX_DiscardUnknown()
func (*MarketServiceReq) XXX_Marshal ¶
func (m *MarketServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceReq) XXX_Merge ¶
func (m *MarketServiceReq) XXX_Merge(src proto.Message)
func (*MarketServiceReq) XXX_Size ¶
func (m *MarketServiceReq) XXX_Size() int
func (*MarketServiceReq) XXX_Unmarshal ¶
func (m *MarketServiceReq) XXX_Unmarshal(b []byte) error
type MarketServiceReq_ListPairs ¶
type MarketServiceReq_ListPairs struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceReq_ListPairs) Descriptor ¶
func (*MarketServiceReq_ListPairs) Descriptor() ([]byte, []int)
func (*MarketServiceReq_ListPairs) ProtoMessage ¶
func (*MarketServiceReq_ListPairs) ProtoMessage()
func (*MarketServiceReq_ListPairs) Reset ¶
func (m *MarketServiceReq_ListPairs) Reset()
func (*MarketServiceReq_ListPairs) String ¶
func (m *MarketServiceReq_ListPairs) String() string
func (*MarketServiceReq_ListPairs) XXX_DiscardUnknown ¶
func (m *MarketServiceReq_ListPairs) XXX_DiscardUnknown()
func (*MarketServiceReq_ListPairs) XXX_Marshal ¶
func (m *MarketServiceReq_ListPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceReq_ListPairs) XXX_Merge ¶
func (m *MarketServiceReq_ListPairs) XXX_Merge(src proto.Message)
func (*MarketServiceReq_ListPairs) XXX_Size ¶
func (m *MarketServiceReq_ListPairs) XXX_Size() int
func (*MarketServiceReq_ListPairs) XXX_Unmarshal ¶
func (m *MarketServiceReq_ListPairs) XXX_Unmarshal(b []byte) error
type MarketServiceReq_ReadDepth ¶
type MarketServiceReq_ReadDepth struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceReq_ReadDepth) Descriptor ¶
func (*MarketServiceReq_ReadDepth) Descriptor() ([]byte, []int)
func (*MarketServiceReq_ReadDepth) GetSymbol ¶
func (m *MarketServiceReq_ReadDepth) GetSymbol() string
func (*MarketServiceReq_ReadDepth) ProtoMessage ¶
func (*MarketServiceReq_ReadDepth) ProtoMessage()
func (*MarketServiceReq_ReadDepth) Reset ¶
func (m *MarketServiceReq_ReadDepth) Reset()
func (*MarketServiceReq_ReadDepth) String ¶
func (m *MarketServiceReq_ReadDepth) String() string
func (*MarketServiceReq_ReadDepth) XXX_DiscardUnknown ¶
func (m *MarketServiceReq_ReadDepth) XXX_DiscardUnknown()
func (*MarketServiceReq_ReadDepth) XXX_Marshal ¶
func (m *MarketServiceReq_ReadDepth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceReq_ReadDepth) XXX_Merge ¶
func (m *MarketServiceReq_ReadDepth) XXX_Merge(src proto.Message)
func (*MarketServiceReq_ReadDepth) XXX_Size ¶
func (m *MarketServiceReq_ReadDepth) XXX_Size() int
func (*MarketServiceReq_ReadDepth) XXX_Unmarshal ¶
func (m *MarketServiceReq_ReadDepth) XXX_Unmarshal(b []byte) error
type MarketServiceReq_ReadPair ¶
type MarketServiceReq_ReadPair struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceReq_ReadPair) Descriptor ¶
func (*MarketServiceReq_ReadPair) Descriptor() ([]byte, []int)
func (*MarketServiceReq_ReadPair) GetSymbol ¶
func (m *MarketServiceReq_ReadPair) GetSymbol() string
func (*MarketServiceReq_ReadPair) ProtoMessage ¶
func (*MarketServiceReq_ReadPair) ProtoMessage()
func (*MarketServiceReq_ReadPair) Reset ¶
func (m *MarketServiceReq_ReadPair) Reset()
func (*MarketServiceReq_ReadPair) String ¶
func (m *MarketServiceReq_ReadPair) String() string
func (*MarketServiceReq_ReadPair) XXX_DiscardUnknown ¶
func (m *MarketServiceReq_ReadPair) XXX_DiscardUnknown()
func (*MarketServiceReq_ReadPair) XXX_Marshal ¶
func (m *MarketServiceReq_ReadPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceReq_ReadPair) XXX_Merge ¶
func (m *MarketServiceReq_ReadPair) XXX_Merge(src proto.Message)
func (*MarketServiceReq_ReadPair) XXX_Size ¶
func (m *MarketServiceReq_ReadPair) XXX_Size() int
func (*MarketServiceReq_ReadPair) XXX_Unmarshal ¶
func (m *MarketServiceReq_ReadPair) XXX_Unmarshal(b []byte) error
type MarketServiceResp ¶
type MarketServiceResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceResp) Descriptor ¶
func (*MarketServiceResp) Descriptor() ([]byte, []int)
func (*MarketServiceResp) ProtoMessage ¶
func (*MarketServiceResp) ProtoMessage()
func (*MarketServiceResp) Reset ¶
func (m *MarketServiceResp) Reset()
func (*MarketServiceResp) String ¶
func (m *MarketServiceResp) String() string
func (*MarketServiceResp) XXX_DiscardUnknown ¶
func (m *MarketServiceResp) XXX_DiscardUnknown()
func (*MarketServiceResp) XXX_Marshal ¶
func (m *MarketServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceResp) XXX_Merge ¶
func (m *MarketServiceResp) XXX_Merge(src proto.Message)
func (*MarketServiceResp) XXX_Size ¶
func (m *MarketServiceResp) XXX_Size() int
func (*MarketServiceResp) XXX_Unmarshal ¶
func (m *MarketServiceResp) XXX_Unmarshal(b []byte) error
type MarketServiceResp_ListPairs ¶
type MarketServiceResp_ListPairs struct { Pairs []*Pair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MarketServiceResp_ListPairs) Descriptor ¶
func (*MarketServiceResp_ListPairs) Descriptor() ([]byte, []int)
func (*MarketServiceResp_ListPairs) GetPairs ¶
func (m *MarketServiceResp_ListPairs) GetPairs() []*Pair
func (*MarketServiceResp_ListPairs) ProtoMessage ¶
func (*MarketServiceResp_ListPairs) ProtoMessage()
func (*MarketServiceResp_ListPairs) Reset ¶
func (m *MarketServiceResp_ListPairs) Reset()
func (*MarketServiceResp_ListPairs) String ¶
func (m *MarketServiceResp_ListPairs) String() string
func (*MarketServiceResp_ListPairs) XXX_DiscardUnknown ¶
func (m *MarketServiceResp_ListPairs) XXX_DiscardUnknown()
func (*MarketServiceResp_ListPairs) XXX_Marshal ¶
func (m *MarketServiceResp_ListPairs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketServiceResp_ListPairs) XXX_Merge ¶
func (m *MarketServiceResp_ListPairs) XXX_Merge(src proto.Message)
func (*MarketServiceResp_ListPairs) XXX_Size ¶
func (m *MarketServiceResp_ListPairs) XXX_Size() int
func (*MarketServiceResp_ListPairs) XXX_Unmarshal ¶
func (m *MarketServiceResp_ListPairs) XXX_Unmarshal(b []byte) error
type MerchantService ¶
type MerchantService interface { // 预创建订单 POST /api/m/books CreateBook(context.Context, *MerchantServiceReq_CreateBook) (*Book, error) // 获取订单详情 GET /api/m/order/{trace_id} ReadOrder(context.Context, *MerchantServiceReq_ReadOrder) (*Order, error) // 查询订单列表 GET /api/m/orders ListOrders(context.Context, *MerchantServiceReq_ListOrders) (*MerchantServiceResp_ListOrders, error) // 查询订单报表 GET /api/m/order-reports ListOrderReports(context.Context, *MerchantServiceReq_ListOrderReports) (*MerchantServiceResp_ListOrderReports, error) // 撤单 DELETE /api/m/order/{trace_id} CancelOrder(context.Context, *MerchantServiceReq_CancelOrder) (*MerchantServiceResp_CancelOrder, error) }
MerchantService handle merchant request
func NewMerchantServiceJSONClient ¶
func NewMerchantServiceJSONClient(addr string, client HTTPClient, opts ...twirp.ClientOption) MerchantService
NewMerchantServiceJSONClient creates a JSON client that implements the MerchantService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewMerchantServiceProtobufClient ¶
func NewMerchantServiceProtobufClient(addr string, client HTTPClient, opts ...twirp.ClientOption) MerchantService
NewMerchantServiceProtobufClient creates a Protobuf client that implements the MerchantService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type MerchantServiceReq ¶
type MerchantServiceReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq) Descriptor ¶
func (*MerchantServiceReq) Descriptor() ([]byte, []int)
func (*MerchantServiceReq) ProtoMessage ¶
func (*MerchantServiceReq) ProtoMessage()
func (*MerchantServiceReq) Reset ¶
func (m *MerchantServiceReq) Reset()
func (*MerchantServiceReq) String ¶
func (m *MerchantServiceReq) String() string
func (*MerchantServiceReq) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq) XXX_DiscardUnknown()
func (*MerchantServiceReq) XXX_Marshal ¶
func (m *MerchantServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq) XXX_Merge ¶
func (m *MerchantServiceReq) XXX_Merge(src proto.Message)
func (*MerchantServiceReq) XXX_Size ¶
func (m *MerchantServiceReq) XXX_Size() int
func (*MerchantServiceReq) XXX_Unmarshal ¶
func (m *MerchantServiceReq) XXX_Unmarshal(b []byte) error
type MerchantServiceReq_CancelOrder ¶
type MerchantServiceReq_CancelOrder struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq_CancelOrder) Descriptor ¶
func (*MerchantServiceReq_CancelOrder) Descriptor() ([]byte, []int)
func (*MerchantServiceReq_CancelOrder) GetTraceId ¶
func (m *MerchantServiceReq_CancelOrder) GetTraceId() string
func (*MerchantServiceReq_CancelOrder) ProtoMessage ¶
func (*MerchantServiceReq_CancelOrder) ProtoMessage()
func (*MerchantServiceReq_CancelOrder) Reset ¶
func (m *MerchantServiceReq_CancelOrder) Reset()
func (*MerchantServiceReq_CancelOrder) String ¶
func (m *MerchantServiceReq_CancelOrder) String() string
func (*MerchantServiceReq_CancelOrder) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq_CancelOrder) XXX_DiscardUnknown()
func (*MerchantServiceReq_CancelOrder) XXX_Marshal ¶
func (m *MerchantServiceReq_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq_CancelOrder) XXX_Merge ¶
func (m *MerchantServiceReq_CancelOrder) XXX_Merge(src proto.Message)
func (*MerchantServiceReq_CancelOrder) XXX_Size ¶
func (m *MerchantServiceReq_CancelOrder) XXX_Size() int
func (*MerchantServiceReq_CancelOrder) XXX_Unmarshal ¶
func (m *MerchantServiceReq_CancelOrder) XXX_Unmarshal(b []byte) error
type MerchantServiceReq_CreateBook ¶
type MerchantServiceReq_CreateBook struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` ReceiptId string `protobuf:"bytes,3,opt,name=receipt_id,json=receiptId,proto3" json:"receipt_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq_CreateBook) Descriptor ¶
func (*MerchantServiceReq_CreateBook) Descriptor() ([]byte, []int)
func (*MerchantServiceReq_CreateBook) GetReceiptId ¶
func (m *MerchantServiceReq_CreateBook) GetReceiptId() string
func (*MerchantServiceReq_CreateBook) GetTraceId ¶
func (m *MerchantServiceReq_CreateBook) GetTraceId() string
func (*MerchantServiceReq_CreateBook) GetUserId ¶
func (m *MerchantServiceReq_CreateBook) GetUserId() string
func (*MerchantServiceReq_CreateBook) ProtoMessage ¶
func (*MerchantServiceReq_CreateBook) ProtoMessage()
func (*MerchantServiceReq_CreateBook) Reset ¶
func (m *MerchantServiceReq_CreateBook) Reset()
func (*MerchantServiceReq_CreateBook) String ¶
func (m *MerchantServiceReq_CreateBook) String() string
func (*MerchantServiceReq_CreateBook) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq_CreateBook) XXX_DiscardUnknown()
func (*MerchantServiceReq_CreateBook) XXX_Marshal ¶
func (m *MerchantServiceReq_CreateBook) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq_CreateBook) XXX_Merge ¶
func (m *MerchantServiceReq_CreateBook) XXX_Merge(src proto.Message)
func (*MerchantServiceReq_CreateBook) XXX_Size ¶
func (m *MerchantServiceReq_CreateBook) XXX_Size() int
func (*MerchantServiceReq_CreateBook) XXX_Unmarshal ¶
func (m *MerchantServiceReq_CreateBook) XXX_Unmarshal(b []byte) error
type MerchantServiceReq_ListOrderReports ¶
type MerchantServiceReq_ListOrderReports struct { Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"` Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq_ListOrderReports) Descriptor ¶
func (*MerchantServiceReq_ListOrderReports) Descriptor() ([]byte, []int)
func (*MerchantServiceReq_ListOrderReports) GetCursor ¶
func (m *MerchantServiceReq_ListOrderReports) GetCursor() string
func (*MerchantServiceReq_ListOrderReports) GetDate ¶
func (m *MerchantServiceReq_ListOrderReports) GetDate() string
func (*MerchantServiceReq_ListOrderReports) GetLimit ¶
func (m *MerchantServiceReq_ListOrderReports) GetLimit() int64
func (*MerchantServiceReq_ListOrderReports) ProtoMessage ¶
func (*MerchantServiceReq_ListOrderReports) ProtoMessage()
func (*MerchantServiceReq_ListOrderReports) Reset ¶
func (m *MerchantServiceReq_ListOrderReports) Reset()
func (*MerchantServiceReq_ListOrderReports) String ¶
func (m *MerchantServiceReq_ListOrderReports) String() string
func (*MerchantServiceReq_ListOrderReports) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq_ListOrderReports) XXX_DiscardUnknown()
func (*MerchantServiceReq_ListOrderReports) XXX_Marshal ¶
func (m *MerchantServiceReq_ListOrderReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq_ListOrderReports) XXX_Merge ¶
func (m *MerchantServiceReq_ListOrderReports) XXX_Merge(src proto.Message)
func (*MerchantServiceReq_ListOrderReports) XXX_Size ¶
func (m *MerchantServiceReq_ListOrderReports) XXX_Size() int
func (*MerchantServiceReq_ListOrderReports) XXX_Unmarshal ¶
func (m *MerchantServiceReq_ListOrderReports) XXX_Unmarshal(b []byte) error
type MerchantServiceReq_ListOrders ¶
type MerchantServiceReq_ListOrders struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Side string `protobuf:"bytes,2,opt,name=side,proto3" json:"side,omitempty"` Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Order SortOrder `protobuf:"varint,6,opt,name=order,proto3,enum=fox.atm.service.SortOrder" json:"order,omitempty"` Cursor string `protobuf:"bytes,7,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq_ListOrders) Descriptor ¶
func (*MerchantServiceReq_ListOrders) Descriptor() ([]byte, []int)
func (*MerchantServiceReq_ListOrders) GetCursor ¶
func (m *MerchantServiceReq_ListOrders) GetCursor() string
func (*MerchantServiceReq_ListOrders) GetLimit ¶
func (m *MerchantServiceReq_ListOrders) GetLimit() int64
func (*MerchantServiceReq_ListOrders) GetOrder ¶
func (m *MerchantServiceReq_ListOrders) GetOrder() SortOrder
func (*MerchantServiceReq_ListOrders) GetSide ¶
func (m *MerchantServiceReq_ListOrders) GetSide() string
func (*MerchantServiceReq_ListOrders) GetState ¶
func (m *MerchantServiceReq_ListOrders) GetState() string
func (*MerchantServiceReq_ListOrders) GetStrategy ¶
func (m *MerchantServiceReq_ListOrders) GetStrategy() string
func (*MerchantServiceReq_ListOrders) GetSymbol ¶
func (m *MerchantServiceReq_ListOrders) GetSymbol() string
func (*MerchantServiceReq_ListOrders) GetUserId ¶
func (m *MerchantServiceReq_ListOrders) GetUserId() string
func (*MerchantServiceReq_ListOrders) ProtoMessage ¶
func (*MerchantServiceReq_ListOrders) ProtoMessage()
func (*MerchantServiceReq_ListOrders) Reset ¶
func (m *MerchantServiceReq_ListOrders) Reset()
func (*MerchantServiceReq_ListOrders) String ¶
func (m *MerchantServiceReq_ListOrders) String() string
func (*MerchantServiceReq_ListOrders) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq_ListOrders) XXX_DiscardUnknown()
func (*MerchantServiceReq_ListOrders) XXX_Marshal ¶
func (m *MerchantServiceReq_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq_ListOrders) XXX_Merge ¶
func (m *MerchantServiceReq_ListOrders) XXX_Merge(src proto.Message)
func (*MerchantServiceReq_ListOrders) XXX_Size ¶
func (m *MerchantServiceReq_ListOrders) XXX_Size() int
func (*MerchantServiceReq_ListOrders) XXX_Unmarshal ¶
func (m *MerchantServiceReq_ListOrders) XXX_Unmarshal(b []byte) error
type MerchantServiceReq_ReadOrder ¶
type MerchantServiceReq_ReadOrder struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceReq_ReadOrder) Descriptor ¶
func (*MerchantServiceReq_ReadOrder) Descriptor() ([]byte, []int)
func (*MerchantServiceReq_ReadOrder) GetTraceId ¶
func (m *MerchantServiceReq_ReadOrder) GetTraceId() string
func (*MerchantServiceReq_ReadOrder) ProtoMessage ¶
func (*MerchantServiceReq_ReadOrder) ProtoMessage()
func (*MerchantServiceReq_ReadOrder) Reset ¶
func (m *MerchantServiceReq_ReadOrder) Reset()
func (*MerchantServiceReq_ReadOrder) String ¶
func (m *MerchantServiceReq_ReadOrder) String() string
func (*MerchantServiceReq_ReadOrder) XXX_DiscardUnknown ¶
func (m *MerchantServiceReq_ReadOrder) XXX_DiscardUnknown()
func (*MerchantServiceReq_ReadOrder) XXX_Marshal ¶
func (m *MerchantServiceReq_ReadOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceReq_ReadOrder) XXX_Merge ¶
func (m *MerchantServiceReq_ReadOrder) XXX_Merge(src proto.Message)
func (*MerchantServiceReq_ReadOrder) XXX_Size ¶
func (m *MerchantServiceReq_ReadOrder) XXX_Size() int
func (*MerchantServiceReq_ReadOrder) XXX_Unmarshal ¶
func (m *MerchantServiceReq_ReadOrder) XXX_Unmarshal(b []byte) error
type MerchantServiceResp ¶
type MerchantServiceResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceResp) Descriptor ¶
func (*MerchantServiceResp) Descriptor() ([]byte, []int)
func (*MerchantServiceResp) ProtoMessage ¶
func (*MerchantServiceResp) ProtoMessage()
func (*MerchantServiceResp) Reset ¶
func (m *MerchantServiceResp) Reset()
func (*MerchantServiceResp) String ¶
func (m *MerchantServiceResp) String() string
func (*MerchantServiceResp) XXX_DiscardUnknown ¶
func (m *MerchantServiceResp) XXX_DiscardUnknown()
func (*MerchantServiceResp) XXX_Marshal ¶
func (m *MerchantServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceResp) XXX_Merge ¶
func (m *MerchantServiceResp) XXX_Merge(src proto.Message)
func (*MerchantServiceResp) XXX_Size ¶
func (m *MerchantServiceResp) XXX_Size() int
func (*MerchantServiceResp) XXX_Unmarshal ¶
func (m *MerchantServiceResp) XXX_Unmarshal(b []byte) error
type MerchantServiceResp_CancelOrder ¶
type MerchantServiceResp_CancelOrder struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceResp_CancelOrder) Descriptor ¶
func (*MerchantServiceResp_CancelOrder) Descriptor() ([]byte, []int)
func (*MerchantServiceResp_CancelOrder) ProtoMessage ¶
func (*MerchantServiceResp_CancelOrder) ProtoMessage()
func (*MerchantServiceResp_CancelOrder) Reset ¶
func (m *MerchantServiceResp_CancelOrder) Reset()
func (*MerchantServiceResp_CancelOrder) String ¶
func (m *MerchantServiceResp_CancelOrder) String() string
func (*MerchantServiceResp_CancelOrder) XXX_DiscardUnknown ¶
func (m *MerchantServiceResp_CancelOrder) XXX_DiscardUnknown()
func (*MerchantServiceResp_CancelOrder) XXX_Marshal ¶
func (m *MerchantServiceResp_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceResp_CancelOrder) XXX_Merge ¶
func (m *MerchantServiceResp_CancelOrder) XXX_Merge(src proto.Message)
func (*MerchantServiceResp_CancelOrder) XXX_Size ¶
func (m *MerchantServiceResp_CancelOrder) XXX_Size() int
func (*MerchantServiceResp_CancelOrder) XXX_Unmarshal ¶
func (m *MerchantServiceResp_CancelOrder) XXX_Unmarshal(b []byte) error
type MerchantServiceResp_ListOrderReports ¶
type MerchantServiceResp_ListOrderReports struct { Reports []*OrderReport `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceResp_ListOrderReports) Descriptor ¶
func (*MerchantServiceResp_ListOrderReports) Descriptor() ([]byte, []int)
func (*MerchantServiceResp_ListOrderReports) GetPagination ¶
func (m *MerchantServiceResp_ListOrderReports) GetPagination() *Pagination
func (*MerchantServiceResp_ListOrderReports) GetReports ¶
func (m *MerchantServiceResp_ListOrderReports) GetReports() []*OrderReport
func (*MerchantServiceResp_ListOrderReports) ProtoMessage ¶
func (*MerchantServiceResp_ListOrderReports) ProtoMessage()
func (*MerchantServiceResp_ListOrderReports) Reset ¶
func (m *MerchantServiceResp_ListOrderReports) Reset()
func (*MerchantServiceResp_ListOrderReports) String ¶
func (m *MerchantServiceResp_ListOrderReports) String() string
func (*MerchantServiceResp_ListOrderReports) XXX_DiscardUnknown ¶
func (m *MerchantServiceResp_ListOrderReports) XXX_DiscardUnknown()
func (*MerchantServiceResp_ListOrderReports) XXX_Marshal ¶
func (m *MerchantServiceResp_ListOrderReports) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceResp_ListOrderReports) XXX_Merge ¶
func (m *MerchantServiceResp_ListOrderReports) XXX_Merge(src proto.Message)
func (*MerchantServiceResp_ListOrderReports) XXX_Size ¶
func (m *MerchantServiceResp_ListOrderReports) XXX_Size() int
func (*MerchantServiceResp_ListOrderReports) XXX_Unmarshal ¶
func (m *MerchantServiceResp_ListOrderReports) XXX_Unmarshal(b []byte) error
type MerchantServiceResp_ListOrders ¶
type MerchantServiceResp_ListOrders struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MerchantServiceResp_ListOrders) Descriptor ¶
func (*MerchantServiceResp_ListOrders) Descriptor() ([]byte, []int)
func (*MerchantServiceResp_ListOrders) GetOrders ¶
func (m *MerchantServiceResp_ListOrders) GetOrders() []*Order
func (*MerchantServiceResp_ListOrders) GetPagination ¶
func (m *MerchantServiceResp_ListOrders) GetPagination() *Pagination
func (*MerchantServiceResp_ListOrders) ProtoMessage ¶
func (*MerchantServiceResp_ListOrders) ProtoMessage()
func (*MerchantServiceResp_ListOrders) Reset ¶
func (m *MerchantServiceResp_ListOrders) Reset()
func (*MerchantServiceResp_ListOrders) String ¶
func (m *MerchantServiceResp_ListOrders) String() string
func (*MerchantServiceResp_ListOrders) XXX_DiscardUnknown ¶
func (m *MerchantServiceResp_ListOrders) XXX_DiscardUnknown()
func (*MerchantServiceResp_ListOrders) XXX_Marshal ¶
func (m *MerchantServiceResp_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MerchantServiceResp_ListOrders) XXX_Merge ¶
func (m *MerchantServiceResp_ListOrders) XXX_Merge(src proto.Message)
func (*MerchantServiceResp_ListOrders) XXX_Size ¶
func (m *MerchantServiceResp_ListOrders) XXX_Size() int
func (*MerchantServiceResp_ListOrders) XXX_Unmarshal ¶
func (m *MerchantServiceResp_ListOrders) XXX_Unmarshal(b []byte) error
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` CancelledAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=cancelled_at,json=cancelledAt,proto3" json:"cancelled_at,omitempty"` UserId string `protobuf:"bytes,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` MerchantId string `protobuf:"bytes,6,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` State Order_State `protobuf:"varint,7,opt,name=state,proto3,enum=fox.atm.service.Order_State" json:"state,omitempty"` PaySymbol string `protobuf:"bytes,8,opt,name=pay_symbol,json=paySymbol,proto3" json:"pay_symbol,omitempty"` FillSymbol string `protobuf:"bytes,9,opt,name=fill_symbol,json=fillSymbol,proto3" json:"fill_symbol,omitempty"` Symbol string `protobuf:"bytes,10,opt,name=symbol,proto3" json:"symbol,omitempty"` Side Side `protobuf:"varint,11,opt,name=side,proto3,enum=fox.atm.service.Side" json:"side,omitempty"` Strategy Strategy `protobuf:"varint,12,opt,name=strategy,proto3,enum=fox.atm.service.Strategy" json:"strategy,omitempty"` Price string `protobuf:"bytes,13,opt,name=price,proto3" json:"price,omitempty"` Discount string `protobuf:"bytes,14,opt,name=discount,proto3" json:"discount,omitempty"` Funds string `protobuf:"bytes,15,opt,name=funds,proto3" json:"funds,omitempty"` FilledFunds string `protobuf:"bytes,16,opt,name=filled_funds,json=filledFunds,proto3" json:"filled_funds,omitempty"` FilledAmount string `protobuf:"bytes,17,opt,name=filled_amount,json=filledAmount,proto3" json:"filled_amount,omitempty"` ExtraFilledAmount string `protobuf:"bytes,18,opt,name=extra_filled_amount,json=extraFilledAmount,proto3" json:"extra_filled_amount,omitempty"` FeeAmount string `protobuf:"bytes,19,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` AveragePrice string `protobuf:"bytes,20,opt,name=average_price,json=averagePrice,proto3" json:"average_price,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Order) Descriptor ¶
func (*Order) GetAveragePrice ¶
func (*Order) GetCancelledAt ¶
func (*Order) GetCreatedAt ¶
func (*Order) GetDiscount ¶
func (*Order) GetExtraFilledAmount ¶
func (*Order) GetFeeAmount ¶
func (*Order) GetFillSymbol ¶
func (*Order) GetFilledAmount ¶
func (*Order) GetFilledFunds ¶
func (*Order) GetMerchantId ¶
func (*Order) GetPaySymbol ¶
func (*Order) GetState ¶
func (m *Order) GetState() Order_State
func (*Order) GetStrategy ¶
func (*Order) GetUpdatedAt ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) XXX_DiscardUnknown ¶
func (m *Order) XXX_DiscardUnknown()
func (*Order) XXX_Marshal ¶
func (*Order) XXX_Unmarshal ¶
type OrderReport ¶
type OrderReport struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date,omitempty"` UserId string `protobuf:"bytes,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` MerchantId string `protobuf:"bytes,5,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Symbol string `protobuf:"bytes,6,opt,name=symbol,proto3" json:"symbol,omitempty"` Side string `protobuf:"bytes,7,opt,name=side,proto3" json:"side,omitempty"` FilledAmount string `protobuf:"bytes,8,opt,name=filled_amount,json=filledAmount,proto3" json:"filled_amount,omitempty"` ObtainedAmount string `protobuf:"bytes,9,opt,name=obtained_amount,json=obtainedAmount,proto3" json:"obtained_amount,omitempty"` FeeAmount string `protobuf:"bytes,10,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"` FeeAsset string `protobuf:"bytes,11,opt,name=fee_asset,json=feeAsset,proto3" json:"fee_asset,omitempty"` Count int32 `protobuf:"varint,12,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderReport) Descriptor ¶
func (*OrderReport) Descriptor() ([]byte, []int)
func (*OrderReport) GetCount ¶
func (m *OrderReport) GetCount() int32
func (*OrderReport) GetCreatedAt ¶
func (m *OrderReport) GetCreatedAt() *timestamp.Timestamp
func (*OrderReport) GetDate ¶
func (m *OrderReport) GetDate() string
func (*OrderReport) GetFeeAmount ¶
func (m *OrderReport) GetFeeAmount() string
func (*OrderReport) GetFeeAsset ¶
func (m *OrderReport) GetFeeAsset() string
func (*OrderReport) GetFilledAmount ¶
func (m *OrderReport) GetFilledAmount() string
func (*OrderReport) GetId ¶
func (m *OrderReport) GetId() string
func (*OrderReport) GetMerchantId ¶
func (m *OrderReport) GetMerchantId() string
func (*OrderReport) GetObtainedAmount ¶
func (m *OrderReport) GetObtainedAmount() string
func (*OrderReport) GetSide ¶
func (m *OrderReport) GetSide() string
func (*OrderReport) GetSymbol ¶
func (m *OrderReport) GetSymbol() string
func (*OrderReport) GetUserId ¶
func (m *OrderReport) GetUserId() string
func (*OrderReport) ProtoMessage ¶
func (*OrderReport) ProtoMessage()
func (*OrderReport) Reset ¶
func (m *OrderReport) Reset()
func (*OrderReport) String ¶
func (m *OrderReport) String() string
func (*OrderReport) XXX_DiscardUnknown ¶
func (m *OrderReport) XXX_DiscardUnknown()
func (*OrderReport) XXX_Marshal ¶
func (m *OrderReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderReport) XXX_Merge ¶
func (m *OrderReport) XXX_Merge(src proto.Message)
func (*OrderReport) XXX_Size ¶
func (m *OrderReport) XXX_Size() int
func (*OrderReport) XXX_Unmarshal ¶
func (m *OrderReport) XXX_Unmarshal(b []byte) error
type Order_State ¶
type Order_State int32
const ( Order_Trading Order_State = 0 Order_Filled Order_State = 1 Order_Cancelled Order_State = 2 Order_Rejected Order_State = 3 Order_Timeout Order_State = 4 )
func (Order_State) EnumDescriptor ¶
func (Order_State) EnumDescriptor() ([]byte, []int)
func (Order_State) String ¶
func (x Order_State) String() string
type Pagination ¶
type Pagination struct { NextCursor string `protobuf:"bytes,1,opt,name=next_cursor,json=nextCursor,proto3" json:"next_cursor,omitempty"` HasNext bool `protobuf:"varint,2,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pagination) Descriptor ¶
func (*Pagination) Descriptor() ([]byte, []int)
func (*Pagination) GetHasNext ¶
func (m *Pagination) GetHasNext() bool
func (*Pagination) GetNextCursor ¶
func (m *Pagination) GetNextCursor() string
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) Reset ¶
func (m *Pagination) Reset()
func (*Pagination) String ¶
func (m *Pagination) String() string
func (*Pagination) XXX_DiscardUnknown ¶
func (m *Pagination) XXX_DiscardUnknown()
func (*Pagination) XXX_Marshal ¶
func (m *Pagination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Pagination) XXX_Merge ¶
func (m *Pagination) XXX_Merge(src proto.Message)
func (*Pagination) XXX_Size ¶
func (m *Pagination) XXX_Size() int
func (*Pagination) XXX_Unmarshal ¶
func (m *Pagination) XXX_Unmarshal(b []byte) error
type Pair ¶
type Pair struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` DisplaySymbol string `protobuf:"bytes,2,opt,name=display_symbol,json=displaySymbol,proto3" json:"display_symbol,omitempty"` Exchange string `protobuf:"bytes,3,opt,name=exchange,proto3" json:"exchange,omitempty"` State Pair_State `protobuf:"varint,4,opt,name=state,proto3,enum=fox.atm.service.Pair_State" json:"state,omitempty"` PricePrecision int32 `protobuf:"varint,5,opt,name=price_precision,json=pricePrecision,proto3" json:"price_precision,omitempty"` BasePrecision int32 `protobuf:"varint,6,opt,name=base_precision,json=basePrecision,proto3" json:"base_precision,omitempty"` QuotePrecision int32 `protobuf:"varint,7,opt,name=quote_precision,json=quotePrecision,proto3" json:"quote_precision,omitempty"` // 24h 价格变化幅度 Change string `protobuf:"bytes,8,opt,name=change,proto3" json:"change,omitempty"` // 当前价格 Price string `protobuf:"bytes,9,opt,name=price,proto3" json:"price,omitempty"` // 买一价格 PriceBuy string `protobuf:"bytes,10,opt,name=price_buy,json=priceBuy,proto3" json:"price_buy,omitempty"` // 卖一价格 PriceSell string `protobuf:"bytes,11,opt,name=price_sell,json=priceSell,proto3" json:"price_sell,omitempty"` Strategies []string `protobuf:"bytes,12,rep,name=strategies,proto3" json:"strategies,omitempty"` Base *Asset `protobuf:"bytes,13,opt,name=base,proto3" json:"base,omitempty"` Quote *Asset `protobuf:"bytes,14,opt,name=quote,proto3" json:"quote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pair) Descriptor ¶
func (*Pair) GetBasePrecision ¶
func (*Pair) GetDisplaySymbol ¶
func (*Pair) GetExchange ¶
func (*Pair) GetPriceBuy ¶
func (*Pair) GetPricePrecision ¶
func (*Pair) GetPriceSell ¶
func (*Pair) GetQuotePrecision ¶
func (*Pair) GetState ¶
func (m *Pair) GetState() Pair_State
func (*Pair) GetStrategies ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) XXX_DiscardUnknown ¶
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Unmarshal ¶
type Pair_State ¶
type Pair_State int32
const ( Pair_Trading Pair_State = 0 Pair_Break Pair_State = 1 )
func (Pair_State) EnumDescriptor ¶
func (Pair_State) EnumDescriptor() ([]byte, []int)
func (Pair_State) String ¶
func (x Pair_State) String() string
type TwirpServer ¶
type TwirpServer interface { http.Handler // ServiceDescriptor returns gzipped bytes describing the .proto file that // this service was generated from. Once unzipped, the bytes can be // unmarshalled as a // github.com/golang/protobuf/protoc-gen-go/descriptor.FileDescriptorProto. // // The returned integer is the index of this particular service within that // FileDescriptorProto's 'Service' slice of ServiceDescriptorProtos. This is a // low-level field, expected to be used for reflection. ServiceDescriptor() ([]byte, int) // ProtocGenTwirpVersion is the semantic version string of the version of // twirp used to generate this file. ProtocGenTwirpVersion() string // PathPrefix returns the HTTP URL path prefix for all methods handled by this // service. This can be used with an HTTP mux to route twirp requests // alongside non-twirp requests on one HTTP listener. PathPrefix() string }
TwirpServer is the interface generated server structs will support: they're HTTP handlers with additional methods for accessing metadata about the service. Those accessors are a low-level API for building reflection tools. Most people can think of TwirpServers as just http.Handlers.
func NewMarketServiceServer ¶
func NewMarketServiceServer(svc MarketService, hooks *twirp.ServerHooks) TwirpServer
func NewMerchantServiceServer ¶
func NewMerchantServiceServer(svc MerchantService, hooks *twirp.ServerHooks) TwirpServer
func NewUserServiceServer ¶
func NewUserServiceServer(svc UserService, hooks *twirp.ServerHooks) TwirpServer
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` BrokerId string `protobuf:"bytes,4,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*User) Descriptor ¶
func (*User) GetBrokerId ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserService ¶
type UserService interface { // 获取个人信息 GET /api/me Me(context.Context, *UserServiceReq_Me) (*User, error) // 获取订单详情 GET /api/m/order/{trace_id} ReadOrder(context.Context, *UserServiceReq_ReadOrder) (*Order, error) // 查询订单列表 GET /api/m/orders ListOrders(context.Context, *UserServiceReq_ListOrders) (*UserServiceResp_ListOrders, error) // 撤单 DELETE /api/m/order/{trace_id} CancelOrder(context.Context, *UserServiceReq_CancelOrder) (*UserServiceResp_CancelOrder, error) }
UserService handle user requests
func NewUserServiceJSONClient ¶
func NewUserServiceJSONClient(addr string, client HTTPClient, opts ...twirp.ClientOption) UserService
NewUserServiceJSONClient creates a JSON client that implements the UserService interface. It communicates using JSON and can be configured with a custom HTTPClient.
func NewUserServiceProtobufClient ¶
func NewUserServiceProtobufClient(addr string, client HTTPClient, opts ...twirp.ClientOption) UserService
NewUserServiceProtobufClient creates a Protobuf client that implements the UserService interface. It communicates using Protobuf and can be configured with a custom HTTPClient.
type UserServiceReq ¶
type UserServiceReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceReq) Descriptor ¶
func (*UserServiceReq) Descriptor() ([]byte, []int)
func (*UserServiceReq) ProtoMessage ¶
func (*UserServiceReq) ProtoMessage()
func (*UserServiceReq) Reset ¶
func (m *UserServiceReq) Reset()
func (*UserServiceReq) String ¶
func (m *UserServiceReq) String() string
func (*UserServiceReq) XXX_DiscardUnknown ¶
func (m *UserServiceReq) XXX_DiscardUnknown()
func (*UserServiceReq) XXX_Marshal ¶
func (m *UserServiceReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceReq) XXX_Merge ¶
func (m *UserServiceReq) XXX_Merge(src proto.Message)
func (*UserServiceReq) XXX_Size ¶
func (m *UserServiceReq) XXX_Size() int
func (*UserServiceReq) XXX_Unmarshal ¶
func (m *UserServiceReq) XXX_Unmarshal(b []byte) error
type UserServiceReq_CancelOrder ¶
type UserServiceReq_CancelOrder struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceReq_CancelOrder) Descriptor ¶
func (*UserServiceReq_CancelOrder) Descriptor() ([]byte, []int)
func (*UserServiceReq_CancelOrder) GetTraceId ¶
func (m *UserServiceReq_CancelOrder) GetTraceId() string
func (*UserServiceReq_CancelOrder) ProtoMessage ¶
func (*UserServiceReq_CancelOrder) ProtoMessage()
func (*UserServiceReq_CancelOrder) Reset ¶
func (m *UserServiceReq_CancelOrder) Reset()
func (*UserServiceReq_CancelOrder) String ¶
func (m *UserServiceReq_CancelOrder) String() string
func (*UserServiceReq_CancelOrder) XXX_DiscardUnknown ¶
func (m *UserServiceReq_CancelOrder) XXX_DiscardUnknown()
func (*UserServiceReq_CancelOrder) XXX_Marshal ¶
func (m *UserServiceReq_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceReq_CancelOrder) XXX_Merge ¶
func (m *UserServiceReq_CancelOrder) XXX_Merge(src proto.Message)
func (*UserServiceReq_CancelOrder) XXX_Size ¶
func (m *UserServiceReq_CancelOrder) XXX_Size() int
func (*UserServiceReq_CancelOrder) XXX_Unmarshal ¶
func (m *UserServiceReq_CancelOrder) XXX_Unmarshal(b []byte) error
type UserServiceReq_ListOrders ¶
type UserServiceReq_ListOrders struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` Side string `protobuf:"bytes,2,opt,name=side,proto3" json:"side,omitempty"` Strategy string `protobuf:"bytes,3,opt,name=strategy,proto3" json:"strategy,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` MerchantId string `protobuf:"bytes,5,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Order SortOrder `protobuf:"varint,6,opt,name=order,proto3,enum=fox.atm.service.SortOrder" json:"order,omitempty"` Cursor string `protobuf:"bytes,7,opt,name=cursor,proto3" json:"cursor,omitempty"` Limit int64 `protobuf:"varint,8,opt,name=limit,proto3" json:"limit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceReq_ListOrders) Descriptor ¶
func (*UserServiceReq_ListOrders) Descriptor() ([]byte, []int)
func (*UserServiceReq_ListOrders) GetCursor ¶
func (m *UserServiceReq_ListOrders) GetCursor() string
func (*UserServiceReq_ListOrders) GetLimit ¶
func (m *UserServiceReq_ListOrders) GetLimit() int64
func (*UserServiceReq_ListOrders) GetMerchantId ¶
func (m *UserServiceReq_ListOrders) GetMerchantId() string
func (*UserServiceReq_ListOrders) GetOrder ¶
func (m *UserServiceReq_ListOrders) GetOrder() SortOrder
func (*UserServiceReq_ListOrders) GetSide ¶
func (m *UserServiceReq_ListOrders) GetSide() string
func (*UserServiceReq_ListOrders) GetState ¶
func (m *UserServiceReq_ListOrders) GetState() string
func (*UserServiceReq_ListOrders) GetStrategy ¶
func (m *UserServiceReq_ListOrders) GetStrategy() string
func (*UserServiceReq_ListOrders) GetSymbol ¶
func (m *UserServiceReq_ListOrders) GetSymbol() string
func (*UserServiceReq_ListOrders) ProtoMessage ¶
func (*UserServiceReq_ListOrders) ProtoMessage()
func (*UserServiceReq_ListOrders) Reset ¶
func (m *UserServiceReq_ListOrders) Reset()
func (*UserServiceReq_ListOrders) String ¶
func (m *UserServiceReq_ListOrders) String() string
func (*UserServiceReq_ListOrders) XXX_DiscardUnknown ¶
func (m *UserServiceReq_ListOrders) XXX_DiscardUnknown()
func (*UserServiceReq_ListOrders) XXX_Marshal ¶
func (m *UserServiceReq_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceReq_ListOrders) XXX_Merge ¶
func (m *UserServiceReq_ListOrders) XXX_Merge(src proto.Message)
func (*UserServiceReq_ListOrders) XXX_Size ¶
func (m *UserServiceReq_ListOrders) XXX_Size() int
func (*UserServiceReq_ListOrders) XXX_Unmarshal ¶
func (m *UserServiceReq_ListOrders) XXX_Unmarshal(b []byte) error
type UserServiceReq_Me ¶
type UserServiceReq_Me struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceReq_Me) Descriptor ¶
func (*UserServiceReq_Me) Descriptor() ([]byte, []int)
func (*UserServiceReq_Me) ProtoMessage ¶
func (*UserServiceReq_Me) ProtoMessage()
func (*UserServiceReq_Me) Reset ¶
func (m *UserServiceReq_Me) Reset()
func (*UserServiceReq_Me) String ¶
func (m *UserServiceReq_Me) String() string
func (*UserServiceReq_Me) XXX_DiscardUnknown ¶
func (m *UserServiceReq_Me) XXX_DiscardUnknown()
func (*UserServiceReq_Me) XXX_Marshal ¶
func (m *UserServiceReq_Me) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceReq_Me) XXX_Merge ¶
func (m *UserServiceReq_Me) XXX_Merge(src proto.Message)
func (*UserServiceReq_Me) XXX_Size ¶
func (m *UserServiceReq_Me) XXX_Size() int
func (*UserServiceReq_Me) XXX_Unmarshal ¶
func (m *UserServiceReq_Me) XXX_Unmarshal(b []byte) error
type UserServiceReq_ReadOrder ¶
type UserServiceReq_ReadOrder struct { TraceId string `protobuf:"bytes,1,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceReq_ReadOrder) Descriptor ¶
func (*UserServiceReq_ReadOrder) Descriptor() ([]byte, []int)
func (*UserServiceReq_ReadOrder) GetTraceId ¶
func (m *UserServiceReq_ReadOrder) GetTraceId() string
func (*UserServiceReq_ReadOrder) ProtoMessage ¶
func (*UserServiceReq_ReadOrder) ProtoMessage()
func (*UserServiceReq_ReadOrder) Reset ¶
func (m *UserServiceReq_ReadOrder) Reset()
func (*UserServiceReq_ReadOrder) String ¶
func (m *UserServiceReq_ReadOrder) String() string
func (*UserServiceReq_ReadOrder) XXX_DiscardUnknown ¶
func (m *UserServiceReq_ReadOrder) XXX_DiscardUnknown()
func (*UserServiceReq_ReadOrder) XXX_Marshal ¶
func (m *UserServiceReq_ReadOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceReq_ReadOrder) XXX_Merge ¶
func (m *UserServiceReq_ReadOrder) XXX_Merge(src proto.Message)
func (*UserServiceReq_ReadOrder) XXX_Size ¶
func (m *UserServiceReq_ReadOrder) XXX_Size() int
func (*UserServiceReq_ReadOrder) XXX_Unmarshal ¶
func (m *UserServiceReq_ReadOrder) XXX_Unmarshal(b []byte) error
type UserServiceResp ¶
type UserServiceResp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceResp) Descriptor ¶
func (*UserServiceResp) Descriptor() ([]byte, []int)
func (*UserServiceResp) ProtoMessage ¶
func (*UserServiceResp) ProtoMessage()
func (*UserServiceResp) Reset ¶
func (m *UserServiceResp) Reset()
func (*UserServiceResp) String ¶
func (m *UserServiceResp) String() string
func (*UserServiceResp) XXX_DiscardUnknown ¶
func (m *UserServiceResp) XXX_DiscardUnknown()
func (*UserServiceResp) XXX_Marshal ¶
func (m *UserServiceResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceResp) XXX_Merge ¶
func (m *UserServiceResp) XXX_Merge(src proto.Message)
func (*UserServiceResp) XXX_Size ¶
func (m *UserServiceResp) XXX_Size() int
func (*UserServiceResp) XXX_Unmarshal ¶
func (m *UserServiceResp) XXX_Unmarshal(b []byte) error
type UserServiceResp_CancelOrder ¶
type UserServiceResp_CancelOrder struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceResp_CancelOrder) Descriptor ¶
func (*UserServiceResp_CancelOrder) Descriptor() ([]byte, []int)
func (*UserServiceResp_CancelOrder) ProtoMessage ¶
func (*UserServiceResp_CancelOrder) ProtoMessage()
func (*UserServiceResp_CancelOrder) Reset ¶
func (m *UserServiceResp_CancelOrder) Reset()
func (*UserServiceResp_CancelOrder) String ¶
func (m *UserServiceResp_CancelOrder) String() string
func (*UserServiceResp_CancelOrder) XXX_DiscardUnknown ¶
func (m *UserServiceResp_CancelOrder) XXX_DiscardUnknown()
func (*UserServiceResp_CancelOrder) XXX_Marshal ¶
func (m *UserServiceResp_CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceResp_CancelOrder) XXX_Merge ¶
func (m *UserServiceResp_CancelOrder) XXX_Merge(src proto.Message)
func (*UserServiceResp_CancelOrder) XXX_Size ¶
func (m *UserServiceResp_CancelOrder) XXX_Size() int
func (*UserServiceResp_CancelOrder) XXX_Unmarshal ¶
func (m *UserServiceResp_CancelOrder) XXX_Unmarshal(b []byte) error
type UserServiceResp_ListOrders ¶
type UserServiceResp_ListOrders struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserServiceResp_ListOrders) Descriptor ¶
func (*UserServiceResp_ListOrders) Descriptor() ([]byte, []int)
func (*UserServiceResp_ListOrders) GetOrders ¶
func (m *UserServiceResp_ListOrders) GetOrders() []*Order
func (*UserServiceResp_ListOrders) GetPagination ¶
func (m *UserServiceResp_ListOrders) GetPagination() *Pagination
func (*UserServiceResp_ListOrders) ProtoMessage ¶
func (*UserServiceResp_ListOrders) ProtoMessage()
func (*UserServiceResp_ListOrders) Reset ¶
func (m *UserServiceResp_ListOrders) Reset()
func (*UserServiceResp_ListOrders) String ¶
func (m *UserServiceResp_ListOrders) String() string
func (*UserServiceResp_ListOrders) XXX_DiscardUnknown ¶
func (m *UserServiceResp_ListOrders) XXX_DiscardUnknown()
func (*UserServiceResp_ListOrders) XXX_Marshal ¶
func (m *UserServiceResp_ListOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserServiceResp_ListOrders) XXX_Merge ¶
func (m *UserServiceResp_ListOrders) XXX_Merge(src proto.Message)
func (*UserServiceResp_ListOrders) XXX_Size ¶
func (m *UserServiceResp_ListOrders) XXX_Size() int
func (*UserServiceResp_ListOrders) XXX_Unmarshal ¶
func (m *UserServiceResp_ListOrders) XXX_Unmarshal(b []byte) error