pool/clmrpc/server.pb.go
2020-01-17 17:27:39 +01:00

2053 lines
78 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: server.proto
package clmrpc
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type InvalidOrder_FailReason int32
const (
InvalidOrder_INVALID_AMT InvalidOrder_FailReason = 0
)
var InvalidOrder_FailReason_name = map[int32]string{
0: "INVALID_AMT",
}
var InvalidOrder_FailReason_value = map[string]int32{
"INVALID_AMT": 0,
}
func (x InvalidOrder_FailReason) String() string {
return proto.EnumName(InvalidOrder_FailReason_name, int32(x))
}
func (InvalidOrder_FailReason) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{20, 0}
}
type ServerOrderStateResponse_OrderState int32
const (
ServerOrderStateResponse_SUBMITTED ServerOrderStateResponse_OrderState = 0
ServerOrderStateResponse_CLEARED ServerOrderStateResponse_OrderState = 1
ServerOrderStateResponse_PARTIAL_FILL ServerOrderStateResponse_OrderState = 2
ServerOrderStateResponse_EXECUTED ServerOrderStateResponse_OrderState = 3
ServerOrderStateResponse_CANCELED ServerOrderStateResponse_OrderState = 4
ServerOrderStateResponse_EXPIRED ServerOrderStateResponse_OrderState = 5
ServerOrderStateResponse_FAILED ServerOrderStateResponse_OrderState = 6
)
var ServerOrderStateResponse_OrderState_name = map[int32]string{
0: "SUBMITTED",
1: "CLEARED",
2: "PARTIAL_FILL",
3: "EXECUTED",
4: "CANCELED",
5: "EXPIRED",
6: "FAILED",
}
var ServerOrderStateResponse_OrderState_value = map[string]int32{
"SUBMITTED": 0,
"CLEARED": 1,
"PARTIAL_FILL": 2,
"EXECUTED": 3,
"CANCELED": 4,
"EXPIRED": 5,
"FAILED": 6,
}
func (x ServerOrderStateResponse_OrderState) String() string {
return proto.EnumName(ServerOrderStateResponse_OrderState_name, int32(x))
}
func (ServerOrderStateResponse_OrderState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{25, 0}
}
type ReserveAccountRequest struct {
UserSubKey []byte `protobuf:"bytes,1,opt,name=user_sub_key,json=userSubKey,proto3" json:"user_sub_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReserveAccountRequest) Reset() { *m = ReserveAccountRequest{} }
func (m *ReserveAccountRequest) String() string { return proto.CompactTextString(m) }
func (*ReserveAccountRequest) ProtoMessage() {}
func (*ReserveAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{0}
}
func (m *ReserveAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReserveAccountRequest.Unmarshal(m, b)
}
func (m *ReserveAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReserveAccountRequest.Marshal(b, m, deterministic)
}
func (m *ReserveAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReserveAccountRequest.Merge(m, src)
}
func (m *ReserveAccountRequest) XXX_Size() int {
return xxx_messageInfo_ReserveAccountRequest.Size(m)
}
func (m *ReserveAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ReserveAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ReserveAccountRequest proto.InternalMessageInfo
func (m *ReserveAccountRequest) GetUserSubKey() []byte {
if m != nil {
return m.UserSubKey
}
return nil
}
type ReserveAccountResponse struct {
AuctioneerKey []byte `protobuf:"bytes,1,opt,name=auctioneer_key,json=auctioneerKey,proto3" json:"auctioneer_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ReserveAccountResponse) Reset() { *m = ReserveAccountResponse{} }
func (m *ReserveAccountResponse) String() string { return proto.CompactTextString(m) }
func (*ReserveAccountResponse) ProtoMessage() {}
func (*ReserveAccountResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{1}
}
func (m *ReserveAccountResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ReserveAccountResponse.Unmarshal(m, b)
}
func (m *ReserveAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ReserveAccountResponse.Marshal(b, m, deterministic)
}
func (m *ReserveAccountResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ReserveAccountResponse.Merge(m, src)
}
func (m *ReserveAccountResponse) XXX_Size() int {
return xxx_messageInfo_ReserveAccountResponse.Size(m)
}
func (m *ReserveAccountResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ReserveAccountResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ReserveAccountResponse proto.InternalMessageInfo
func (m *ReserveAccountResponse) GetAuctioneerKey() []byte {
if m != nil {
return m.AuctioneerKey
}
return nil
}
type ServerInitAccountRequest struct {
//*
//Transaction output of the account. Has to be unspent and be a P2WSH of
//the account script below. The amount must also exactly correspond to the
//account value below.
AccountPoint *OutPoint `protobuf:"bytes,1,opt,name=account_point,json=accountPoint,proto3" json:"account_point,omitempty"`
//*
//The script used to create the account point.
AccountScript []byte `protobuf:"bytes,2,opt,name=account_script,json=accountScript,proto3" json:"account_script,omitempty"`
//*
//The value of the account in satoshis. Must match the amount of the
//account_point output.
AccountValue uint32 `protobuf:"varint,3,opt,name=account_value,json=accountValue,proto3" json:"account_value,omitempty"`
//*
//The block height at which the account should expire.
AccountExpiry uint32 `protobuf:"varint,4,opt,name=account_expiry,json=accountExpiry,proto3" json:"account_expiry,omitempty"`
//*
//The user's sub account key.
UserSubKey []byte `protobuf:"bytes,5,opt,name=user_sub_key,json=userSubKey,proto3" json:"user_sub_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInitAccountRequest) Reset() { *m = ServerInitAccountRequest{} }
func (m *ServerInitAccountRequest) String() string { return proto.CompactTextString(m) }
func (*ServerInitAccountRequest) ProtoMessage() {}
func (*ServerInitAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{2}
}
func (m *ServerInitAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInitAccountRequest.Unmarshal(m, b)
}
func (m *ServerInitAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInitAccountRequest.Marshal(b, m, deterministic)
}
func (m *ServerInitAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInitAccountRequest.Merge(m, src)
}
func (m *ServerInitAccountRequest) XXX_Size() int {
return xxx_messageInfo_ServerInitAccountRequest.Size(m)
}
func (m *ServerInitAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInitAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerInitAccountRequest proto.InternalMessageInfo
func (m *ServerInitAccountRequest) GetAccountPoint() *OutPoint {
if m != nil {
return m.AccountPoint
}
return nil
}
func (m *ServerInitAccountRequest) GetAccountScript() []byte {
if m != nil {
return m.AccountScript
}
return nil
}
func (m *ServerInitAccountRequest) GetAccountValue() uint32 {
if m != nil {
return m.AccountValue
}
return 0
}
func (m *ServerInitAccountRequest) GetAccountExpiry() uint32 {
if m != nil {
return m.AccountExpiry
}
return 0
}
func (m *ServerInitAccountRequest) GetUserSubKey() []byte {
if m != nil {
return m.UserSubKey
}
return nil
}
type ServerInitAccountResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerInitAccountResponse) Reset() { *m = ServerInitAccountResponse{} }
func (m *ServerInitAccountResponse) String() string { return proto.CompactTextString(m) }
func (*ServerInitAccountResponse) ProtoMessage() {}
func (*ServerInitAccountResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{3}
}
func (m *ServerInitAccountResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerInitAccountResponse.Unmarshal(m, b)
}
func (m *ServerInitAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerInitAccountResponse.Marshal(b, m, deterministic)
}
func (m *ServerInitAccountResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerInitAccountResponse.Merge(m, src)
}
func (m *ServerInitAccountResponse) XXX_Size() int {
return xxx_messageInfo_ServerInitAccountResponse.Size(m)
}
func (m *ServerInitAccountResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerInitAccountResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerInitAccountResponse proto.InternalMessageInfo
type ServerCloseAccountRequest struct {
//*
//The user's sub account key.
UserSubKey []byte `protobuf:"bytes,1,opt,name=user_sub_key,json=userSubKey,proto3" json:"user_sub_key,omitempty"`
//*
//Specifies where the money from the account should be sent to.
CloseOutputs map[int64][]byte `protobuf:"bytes,2,rep,name=close_outputs,json=closeOutputs,proto3" json:"close_outputs,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerCloseAccountRequest) Reset() { *m = ServerCloseAccountRequest{} }
func (m *ServerCloseAccountRequest) String() string { return proto.CompactTextString(m) }
func (*ServerCloseAccountRequest) ProtoMessage() {}
func (*ServerCloseAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{4}
}
func (m *ServerCloseAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerCloseAccountRequest.Unmarshal(m, b)
}
func (m *ServerCloseAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerCloseAccountRequest.Marshal(b, m, deterministic)
}
func (m *ServerCloseAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerCloseAccountRequest.Merge(m, src)
}
func (m *ServerCloseAccountRequest) XXX_Size() int {
return xxx_messageInfo_ServerCloseAccountRequest.Size(m)
}
func (m *ServerCloseAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerCloseAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerCloseAccountRequest proto.InternalMessageInfo
func (m *ServerCloseAccountRequest) GetUserSubKey() []byte {
if m != nil {
return m.UserSubKey
}
return nil
}
func (m *ServerCloseAccountRequest) GetCloseOutputs() map[int64][]byte {
if m != nil {
return m.CloseOutputs
}
return nil
}
type ServerCloseAccountResponse struct {
//*
//Signature that allows the user to broadcast their account closing
//transaction.
CloseSig []byte `protobuf:"bytes,1,opt,name=close_sig,json=closeSig,proto3" json:"close_sig,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerCloseAccountResponse) Reset() { *m = ServerCloseAccountResponse{} }
func (m *ServerCloseAccountResponse) String() string { return proto.CompactTextString(m) }
func (*ServerCloseAccountResponse) ProtoMessage() {}
func (*ServerCloseAccountResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{5}
}
func (m *ServerCloseAccountResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerCloseAccountResponse.Unmarshal(m, b)
}
func (m *ServerCloseAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerCloseAccountResponse.Marshal(b, m, deterministic)
}
func (m *ServerCloseAccountResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerCloseAccountResponse.Merge(m, src)
}
func (m *ServerCloseAccountResponse) XXX_Size() int {
return xxx_messageInfo_ServerCloseAccountResponse.Size(m)
}
func (m *ServerCloseAccountResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerCloseAccountResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerCloseAccountResponse proto.InternalMessageInfo
func (m *ServerCloseAccountResponse) GetCloseSig() []byte {
if m != nil {
return m.CloseSig
}
return nil
}
type ServerSubmitOrderRequest struct {
// Types that are valid to be assigned to Details:
// *ServerSubmitOrderRequest_Ask
// *ServerSubmitOrderRequest_Bid
Details isServerSubmitOrderRequest_Details `protobuf_oneof:"details"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerSubmitOrderRequest) Reset() { *m = ServerSubmitOrderRequest{} }
func (m *ServerSubmitOrderRequest) String() string { return proto.CompactTextString(m) }
func (*ServerSubmitOrderRequest) ProtoMessage() {}
func (*ServerSubmitOrderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{6}
}
func (m *ServerSubmitOrderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerSubmitOrderRequest.Unmarshal(m, b)
}
func (m *ServerSubmitOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerSubmitOrderRequest.Marshal(b, m, deterministic)
}
func (m *ServerSubmitOrderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerSubmitOrderRequest.Merge(m, src)
}
func (m *ServerSubmitOrderRequest) XXX_Size() int {
return xxx_messageInfo_ServerSubmitOrderRequest.Size(m)
}
func (m *ServerSubmitOrderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerSubmitOrderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerSubmitOrderRequest proto.InternalMessageInfo
type isServerSubmitOrderRequest_Details interface {
isServerSubmitOrderRequest_Details()
}
type ServerSubmitOrderRequest_Ask struct {
Ask *ServerAsk `protobuf:"bytes,1,opt,name=ask,proto3,oneof"`
}
type ServerSubmitOrderRequest_Bid struct {
Bid *ServerBid `protobuf:"bytes,2,opt,name=bid,proto3,oneof"`
}
func (*ServerSubmitOrderRequest_Ask) isServerSubmitOrderRequest_Details() {}
func (*ServerSubmitOrderRequest_Bid) isServerSubmitOrderRequest_Details() {}
func (m *ServerSubmitOrderRequest) GetDetails() isServerSubmitOrderRequest_Details {
if m != nil {
return m.Details
}
return nil
}
func (m *ServerSubmitOrderRequest) GetAsk() *ServerAsk {
if x, ok := m.GetDetails().(*ServerSubmitOrderRequest_Ask); ok {
return x.Ask
}
return nil
}
func (m *ServerSubmitOrderRequest) GetBid() *ServerBid {
if x, ok := m.GetDetails().(*ServerSubmitOrderRequest_Bid); ok {
return x.Bid
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ServerSubmitOrderRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ServerSubmitOrderRequest_Ask)(nil),
(*ServerSubmitOrderRequest_Bid)(nil),
}
}
type ServerSubmitOrderResponse struct {
// Types that are valid to be assigned to Details:
// *ServerSubmitOrderResponse_InvalidOrder
// *ServerSubmitOrderResponse_Accepted
Details isServerSubmitOrderResponse_Details `protobuf_oneof:"details"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerSubmitOrderResponse) Reset() { *m = ServerSubmitOrderResponse{} }
func (m *ServerSubmitOrderResponse) String() string { return proto.CompactTextString(m) }
func (*ServerSubmitOrderResponse) ProtoMessage() {}
func (*ServerSubmitOrderResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{7}
}
func (m *ServerSubmitOrderResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerSubmitOrderResponse.Unmarshal(m, b)
}
func (m *ServerSubmitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerSubmitOrderResponse.Marshal(b, m, deterministic)
}
func (m *ServerSubmitOrderResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerSubmitOrderResponse.Merge(m, src)
}
func (m *ServerSubmitOrderResponse) XXX_Size() int {
return xxx_messageInfo_ServerSubmitOrderResponse.Size(m)
}
func (m *ServerSubmitOrderResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerSubmitOrderResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerSubmitOrderResponse proto.InternalMessageInfo
type isServerSubmitOrderResponse_Details interface {
isServerSubmitOrderResponse_Details()
}
type ServerSubmitOrderResponse_InvalidOrder struct {
InvalidOrder *InvalidOrder `protobuf:"bytes,1,opt,name=invalid_order,json=invalidOrder,proto3,oneof"`
}
type ServerSubmitOrderResponse_Accepted struct {
Accepted bool `protobuf:"varint,2,opt,name=accepted,proto3,oneof"`
}
func (*ServerSubmitOrderResponse_InvalidOrder) isServerSubmitOrderResponse_Details() {}
func (*ServerSubmitOrderResponse_Accepted) isServerSubmitOrderResponse_Details() {}
func (m *ServerSubmitOrderResponse) GetDetails() isServerSubmitOrderResponse_Details {
if m != nil {
return m.Details
}
return nil
}
func (m *ServerSubmitOrderResponse) GetInvalidOrder() *InvalidOrder {
if x, ok := m.GetDetails().(*ServerSubmitOrderResponse_InvalidOrder); ok {
return x.InvalidOrder
}
return nil
}
func (m *ServerSubmitOrderResponse) GetAccepted() bool {
if x, ok := m.GetDetails().(*ServerSubmitOrderResponse_Accepted); ok {
return x.Accepted
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ServerSubmitOrderResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ServerSubmitOrderResponse_InvalidOrder)(nil),
(*ServerSubmitOrderResponse_Accepted)(nil),
}
}
type ServerCancelOrderRequest struct {
//*
//The order's unique identifier.
OrderNonce []byte `protobuf:"bytes,1,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerCancelOrderRequest) Reset() { *m = ServerCancelOrderRequest{} }
func (m *ServerCancelOrderRequest) String() string { return proto.CompactTextString(m) }
func (*ServerCancelOrderRequest) ProtoMessage() {}
func (*ServerCancelOrderRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{8}
}
func (m *ServerCancelOrderRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerCancelOrderRequest.Unmarshal(m, b)
}
func (m *ServerCancelOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerCancelOrderRequest.Marshal(b, m, deterministic)
}
func (m *ServerCancelOrderRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerCancelOrderRequest.Merge(m, src)
}
func (m *ServerCancelOrderRequest) XXX_Size() int {
return xxx_messageInfo_ServerCancelOrderRequest.Size(m)
}
func (m *ServerCancelOrderRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerCancelOrderRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerCancelOrderRequest proto.InternalMessageInfo
func (m *ServerCancelOrderRequest) GetOrderNonce() []byte {
if m != nil {
return m.OrderNonce
}
return nil
}
type ServerCancelOrderResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerCancelOrderResponse) Reset() { *m = ServerCancelOrderResponse{} }
func (m *ServerCancelOrderResponse) String() string { return proto.CompactTextString(m) }
func (*ServerCancelOrderResponse) ProtoMessage() {}
func (*ServerCancelOrderResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{9}
}
func (m *ServerCancelOrderResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerCancelOrderResponse.Unmarshal(m, b)
}
func (m *ServerCancelOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerCancelOrderResponse.Marshal(b, m, deterministic)
}
func (m *ServerCancelOrderResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerCancelOrderResponse.Merge(m, src)
}
func (m *ServerCancelOrderResponse) XXX_Size() int {
return xxx_messageInfo_ServerCancelOrderResponse.Size(m)
}
func (m *ServerCancelOrderResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerCancelOrderResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerCancelOrderResponse proto.InternalMessageInfo
type ClientAuctionMessage struct {
// Types that are valid to be assigned to Msg:
// *ClientAuctionMessage_Prepare
// *ClientAuctionMessage_Accept
// *ClientAuctionMessage_Sign
// *ClientAuctionMessage_Finalize
Msg isClientAuctionMessage_Msg `protobuf_oneof:"msg"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ClientAuctionMessage) Reset() { *m = ClientAuctionMessage{} }
func (m *ClientAuctionMessage) String() string { return proto.CompactTextString(m) }
func (*ClientAuctionMessage) ProtoMessage() {}
func (*ClientAuctionMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{10}
}
func (m *ClientAuctionMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ClientAuctionMessage.Unmarshal(m, b)
}
func (m *ClientAuctionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ClientAuctionMessage.Marshal(b, m, deterministic)
}
func (m *ClientAuctionMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ClientAuctionMessage.Merge(m, src)
}
func (m *ClientAuctionMessage) XXX_Size() int {
return xxx_messageInfo_ClientAuctionMessage.Size(m)
}
func (m *ClientAuctionMessage) XXX_DiscardUnknown() {
xxx_messageInfo_ClientAuctionMessage.DiscardUnknown(m)
}
var xxx_messageInfo_ClientAuctionMessage proto.InternalMessageInfo
type isClientAuctionMessage_Msg interface {
isClientAuctionMessage_Msg()
}
type ClientAuctionMessage_Prepare struct {
Prepare *OrderMatchPrepare `protobuf:"bytes,1,opt,name=prepare,proto3,oneof"`
}
type ClientAuctionMessage_Accept struct {
Accept *OrderMatchAccept `protobuf:"bytes,2,opt,name=accept,proto3,oneof"`
}
type ClientAuctionMessage_Sign struct {
Sign *OrderMatchSign `protobuf:"bytes,3,opt,name=sign,proto3,oneof"`
}
type ClientAuctionMessage_Finalize struct {
Finalize *OrderMatchFinalize `protobuf:"bytes,4,opt,name=finalize,proto3,oneof"`
}
func (*ClientAuctionMessage_Prepare) isClientAuctionMessage_Msg() {}
func (*ClientAuctionMessage_Accept) isClientAuctionMessage_Msg() {}
func (*ClientAuctionMessage_Sign) isClientAuctionMessage_Msg() {}
func (*ClientAuctionMessage_Finalize) isClientAuctionMessage_Msg() {}
func (m *ClientAuctionMessage) GetMsg() isClientAuctionMessage_Msg {
if m != nil {
return m.Msg
}
return nil
}
func (m *ClientAuctionMessage) GetPrepare() *OrderMatchPrepare {
if x, ok := m.GetMsg().(*ClientAuctionMessage_Prepare); ok {
return x.Prepare
}
return nil
}
func (m *ClientAuctionMessage) GetAccept() *OrderMatchAccept {
if x, ok := m.GetMsg().(*ClientAuctionMessage_Accept); ok {
return x.Accept
}
return nil
}
func (m *ClientAuctionMessage) GetSign() *OrderMatchSign {
if x, ok := m.GetMsg().(*ClientAuctionMessage_Sign); ok {
return x.Sign
}
return nil
}
func (m *ClientAuctionMessage) GetFinalize() *OrderMatchFinalize {
if x, ok := m.GetMsg().(*ClientAuctionMessage_Finalize); ok {
return x.Finalize
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*ClientAuctionMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*ClientAuctionMessage_Prepare)(nil),
(*ClientAuctionMessage_Accept)(nil),
(*ClientAuctionMessage_Sign)(nil),
(*ClientAuctionMessage_Finalize)(nil),
}
}
type OrderMatchPrepare struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrderMatchPrepare) Reset() { *m = OrderMatchPrepare{} }
func (m *OrderMatchPrepare) String() string { return proto.CompactTextString(m) }
func (*OrderMatchPrepare) ProtoMessage() {}
func (*OrderMatchPrepare) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{11}
}
func (m *OrderMatchPrepare) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderMatchPrepare.Unmarshal(m, b)
}
func (m *OrderMatchPrepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderMatchPrepare.Marshal(b, m, deterministic)
}
func (m *OrderMatchPrepare) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderMatchPrepare.Merge(m, src)
}
func (m *OrderMatchPrepare) XXX_Size() int {
return xxx_messageInfo_OrderMatchPrepare.Size(m)
}
func (m *OrderMatchPrepare) XXX_DiscardUnknown() {
xxx_messageInfo_OrderMatchPrepare.DiscardUnknown(m)
}
var xxx_messageInfo_OrderMatchPrepare proto.InternalMessageInfo
type OrderMatchAccept struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrderMatchAccept) Reset() { *m = OrderMatchAccept{} }
func (m *OrderMatchAccept) String() string { return proto.CompactTextString(m) }
func (*OrderMatchAccept) ProtoMessage() {}
func (*OrderMatchAccept) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{12}
}
func (m *OrderMatchAccept) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderMatchAccept.Unmarshal(m, b)
}
func (m *OrderMatchAccept) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderMatchAccept.Marshal(b, m, deterministic)
}
func (m *OrderMatchAccept) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderMatchAccept.Merge(m, src)
}
func (m *OrderMatchAccept) XXX_Size() int {
return xxx_messageInfo_OrderMatchAccept.Size(m)
}
func (m *OrderMatchAccept) XXX_DiscardUnknown() {
xxx_messageInfo_OrderMatchAccept.DiscardUnknown(m)
}
var xxx_messageInfo_OrderMatchAccept proto.InternalMessageInfo
type OrderMatchSign struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrderMatchSign) Reset() { *m = OrderMatchSign{} }
func (m *OrderMatchSign) String() string { return proto.CompactTextString(m) }
func (*OrderMatchSign) ProtoMessage() {}
func (*OrderMatchSign) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{13}
}
func (m *OrderMatchSign) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderMatchSign.Unmarshal(m, b)
}
func (m *OrderMatchSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderMatchSign.Marshal(b, m, deterministic)
}
func (m *OrderMatchSign) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderMatchSign.Merge(m, src)
}
func (m *OrderMatchSign) XXX_Size() int {
return xxx_messageInfo_OrderMatchSign.Size(m)
}
func (m *OrderMatchSign) XXX_DiscardUnknown() {
xxx_messageInfo_OrderMatchSign.DiscardUnknown(m)
}
var xxx_messageInfo_OrderMatchSign proto.InternalMessageInfo
type OrderMatchFinalize struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OrderMatchFinalize) Reset() { *m = OrderMatchFinalize{} }
func (m *OrderMatchFinalize) String() string { return proto.CompactTextString(m) }
func (*OrderMatchFinalize) ProtoMessage() {}
func (*OrderMatchFinalize) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{14}
}
func (m *OrderMatchFinalize) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OrderMatchFinalize.Unmarshal(m, b)
}
func (m *OrderMatchFinalize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OrderMatchFinalize.Marshal(b, m, deterministic)
}
func (m *OrderMatchFinalize) XXX_Merge(src proto.Message) {
xxx_messageInfo_OrderMatchFinalize.Merge(m, src)
}
func (m *OrderMatchFinalize) XXX_Size() int {
return xxx_messageInfo_OrderMatchFinalize.Size(m)
}
func (m *OrderMatchFinalize) XXX_DiscardUnknown() {
xxx_messageInfo_OrderMatchFinalize.DiscardUnknown(m)
}
var xxx_messageInfo_OrderMatchFinalize proto.InternalMessageInfo
type ServerAuctionMessage struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerAuctionMessage) Reset() { *m = ServerAuctionMessage{} }
func (m *ServerAuctionMessage) String() string { return proto.CompactTextString(m) }
func (*ServerAuctionMessage) ProtoMessage() {}
func (*ServerAuctionMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{15}
}
func (m *ServerAuctionMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerAuctionMessage.Unmarshal(m, b)
}
func (m *ServerAuctionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerAuctionMessage.Marshal(b, m, deterministic)
}
func (m *ServerAuctionMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerAuctionMessage.Merge(m, src)
}
func (m *ServerAuctionMessage) XXX_Size() int {
return xxx_messageInfo_ServerAuctionMessage.Size(m)
}
func (m *ServerAuctionMessage) XXX_DiscardUnknown() {
xxx_messageInfo_ServerAuctionMessage.DiscardUnknown(m)
}
var xxx_messageInfo_ServerAuctionMessage proto.InternalMessageInfo
type ServerOrder struct {
//*
//The user's sub key of the account to use for the order.
UserSubKey []byte `protobuf:"bytes,1,opt,name=user_sub_key,json=userSubKey,proto3" json:"user_sub_key,omitempty"`
//*
//Fixed order rate in parts per million.
RateFixed int64 `protobuf:"varint,2,opt,name=rate_fixed,json=rateFixed,proto3" json:"rate_fixed,omitempty"`
//*
//Order amount in satoshis.
Amt int64 `protobuf:"varint,3,opt,name=amt,proto3" json:"amt,omitempty"`
//*
//Order nonce, acts as unique order identifier.
OrderNonce []byte `protobuf:"bytes,6,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
//*
//Signature of the order's digest, signed with the user's account key. The
//signature must be fixed-size LN wire format encoded. Version 0 includes the
//fields version, rate_fixed, amt and min/max_duration_blocks in the order
//digest.
OrderSig []byte `protobuf:"bytes,7,opt,name=order_sig,json=orderSig,proto3" json:"order_sig,omitempty"`
//*
//The multi signature key of the node creating the order, will be used for the
//target channel's funding TX 2-of-2 multi signature output.
MultiSigKey []byte `protobuf:"bytes,8,opt,name=multi_sig_key,json=multiSigKey,proto3" json:"multi_sig_key,omitempty"`
//*
//The pubkey of the node creating the order.
NodePub []byte `protobuf:"bytes,9,opt,name=node_pub,json=nodePub,proto3" json:"node_pub,omitempty"`
//*
//The network addresses of the node creating the order.
NodeAddr []*NodeAddress `protobuf:"bytes,10,rep,name=node_addr,json=nodeAddr,proto3" json:"node_addr,omitempty"`
//*
//The type of the channel that should be opened.
ChanType uint32 `protobuf:"varint,12,opt,name=chan_type,json=chanType,proto3" json:"chan_type,omitempty"`
//*
//Preferred fee rate to be used for the channel funding transaction, expressed
//in satoshis per 1000 weight units (sat/kW).
FundingFeeRate int64 `protobuf:"varint,13,opt,name=funding_fee_rate,json=fundingFeeRate,proto3" json:"funding_fee_rate,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerOrder) Reset() { *m = ServerOrder{} }
func (m *ServerOrder) String() string { return proto.CompactTextString(m) }
func (*ServerOrder) ProtoMessage() {}
func (*ServerOrder) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{16}
}
func (m *ServerOrder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerOrder.Unmarshal(m, b)
}
func (m *ServerOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerOrder.Marshal(b, m, deterministic)
}
func (m *ServerOrder) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerOrder.Merge(m, src)
}
func (m *ServerOrder) XXX_Size() int {
return xxx_messageInfo_ServerOrder.Size(m)
}
func (m *ServerOrder) XXX_DiscardUnknown() {
xxx_messageInfo_ServerOrder.DiscardUnknown(m)
}
var xxx_messageInfo_ServerOrder proto.InternalMessageInfo
func (m *ServerOrder) GetUserSubKey() []byte {
if m != nil {
return m.UserSubKey
}
return nil
}
func (m *ServerOrder) GetRateFixed() int64 {
if m != nil {
return m.RateFixed
}
return 0
}
func (m *ServerOrder) GetAmt() int64 {
if m != nil {
return m.Amt
}
return 0
}
func (m *ServerOrder) GetOrderNonce() []byte {
if m != nil {
return m.OrderNonce
}
return nil
}
func (m *ServerOrder) GetOrderSig() []byte {
if m != nil {
return m.OrderSig
}
return nil
}
func (m *ServerOrder) GetMultiSigKey() []byte {
if m != nil {
return m.MultiSigKey
}
return nil
}
func (m *ServerOrder) GetNodePub() []byte {
if m != nil {
return m.NodePub
}
return nil
}
func (m *ServerOrder) GetNodeAddr() []*NodeAddress {
if m != nil {
return m.NodeAddr
}
return nil
}
func (m *ServerOrder) GetChanType() uint32 {
if m != nil {
return m.ChanType
}
return 0
}
func (m *ServerOrder) GetFundingFeeRate() int64 {
if m != nil {
return m.FundingFeeRate
}
return 0
}
type ServerBid struct {
//*
//The common fields shared between both ask and bid order types.
Details *ServerOrder `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
//*
//Required minimum number of blocks that a channel opened as a result of this
//bid should be kept open.
MinDurationBlocks int64 `protobuf:"varint,2,opt,name=min_duration_blocks,json=minDurationBlocks,proto3" json:"min_duration_blocks,omitempty"`
//*
//The version of the order format that is used. Will be increased once new
//features are added.
Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerBid) Reset() { *m = ServerBid{} }
func (m *ServerBid) String() string { return proto.CompactTextString(m) }
func (*ServerBid) ProtoMessage() {}
func (*ServerBid) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{17}
}
func (m *ServerBid) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerBid.Unmarshal(m, b)
}
func (m *ServerBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerBid.Marshal(b, m, deterministic)
}
func (m *ServerBid) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerBid.Merge(m, src)
}
func (m *ServerBid) XXX_Size() int {
return xxx_messageInfo_ServerBid.Size(m)
}
func (m *ServerBid) XXX_DiscardUnknown() {
xxx_messageInfo_ServerBid.DiscardUnknown(m)
}
var xxx_messageInfo_ServerBid proto.InternalMessageInfo
func (m *ServerBid) GetDetails() *ServerOrder {
if m != nil {
return m.Details
}
return nil
}
func (m *ServerBid) GetMinDurationBlocks() int64 {
if m != nil {
return m.MinDurationBlocks
}
return 0
}
func (m *ServerBid) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
type ServerAsk struct {
//*
//The common fields shared between both ask and bid order types.
Details *ServerOrder `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
//*
//The maximum number of blocks the liquidity provider is willing to provide
//the channel funds for.
MaxDurationBlocks int64 `protobuf:"varint,4,opt,name=max_duration_blocks,json=maxDurationBlocks,proto3" json:"max_duration_blocks,omitempty"`
//*
//The version of the order format that is used. Will be increased once new
//features are added.
Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerAsk) Reset() { *m = ServerAsk{} }
func (m *ServerAsk) String() string { return proto.CompactTextString(m) }
func (*ServerAsk) ProtoMessage() {}
func (*ServerAsk) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{18}
}
func (m *ServerAsk) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerAsk.Unmarshal(m, b)
}
func (m *ServerAsk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerAsk.Marshal(b, m, deterministic)
}
func (m *ServerAsk) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerAsk.Merge(m, src)
}
func (m *ServerAsk) XXX_Size() int {
return xxx_messageInfo_ServerAsk.Size(m)
}
func (m *ServerAsk) XXX_DiscardUnknown() {
xxx_messageInfo_ServerAsk.DiscardUnknown(m)
}
var xxx_messageInfo_ServerAsk proto.InternalMessageInfo
func (m *ServerAsk) GetDetails() *ServerOrder {
if m != nil {
return m.Details
}
return nil
}
func (m *ServerAsk) GetMaxDurationBlocks() int64 {
if m != nil {
return m.MaxDurationBlocks
}
return 0
}
func (m *ServerAsk) GetVersion() uint32 {
if m != nil {
return m.Version
}
return 0
}
type CancelOrder struct {
OrderNonce []byte `protobuf:"bytes,1,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CancelOrder) Reset() { *m = CancelOrder{} }
func (m *CancelOrder) String() string { return proto.CompactTextString(m) }
func (*CancelOrder) ProtoMessage() {}
func (*CancelOrder) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{19}
}
func (m *CancelOrder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CancelOrder.Unmarshal(m, b)
}
func (m *CancelOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CancelOrder.Marshal(b, m, deterministic)
}
func (m *CancelOrder) XXX_Merge(src proto.Message) {
xxx_messageInfo_CancelOrder.Merge(m, src)
}
func (m *CancelOrder) XXX_Size() int {
return xxx_messageInfo_CancelOrder.Size(m)
}
func (m *CancelOrder) XXX_DiscardUnknown() {
xxx_messageInfo_CancelOrder.DiscardUnknown(m)
}
var xxx_messageInfo_CancelOrder proto.InternalMessageInfo
func (m *CancelOrder) GetOrderNonce() []byte {
if m != nil {
return m.OrderNonce
}
return nil
}
type InvalidOrder struct {
OrderNonce []byte `protobuf:"bytes,1,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
FailReason InvalidOrder_FailReason `protobuf:"varint,2,opt,name=fail_reason,json=failReason,proto3,enum=clmrpc.InvalidOrder_FailReason" json:"fail_reason,omitempty"`
FailString string `protobuf:"bytes,3,opt,name=fail_string,json=failString,proto3" json:"fail_string,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InvalidOrder) Reset() { *m = InvalidOrder{} }
func (m *InvalidOrder) String() string { return proto.CompactTextString(m) }
func (*InvalidOrder) ProtoMessage() {}
func (*InvalidOrder) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{20}
}
func (m *InvalidOrder) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InvalidOrder.Unmarshal(m, b)
}
func (m *InvalidOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InvalidOrder.Marshal(b, m, deterministic)
}
func (m *InvalidOrder) XXX_Merge(src proto.Message) {
xxx_messageInfo_InvalidOrder.Merge(m, src)
}
func (m *InvalidOrder) XXX_Size() int {
return xxx_messageInfo_InvalidOrder.Size(m)
}
func (m *InvalidOrder) XXX_DiscardUnknown() {
xxx_messageInfo_InvalidOrder.DiscardUnknown(m)
}
var xxx_messageInfo_InvalidOrder proto.InternalMessageInfo
func (m *InvalidOrder) GetOrderNonce() []byte {
if m != nil {
return m.OrderNonce
}
return nil
}
func (m *InvalidOrder) GetFailReason() InvalidOrder_FailReason {
if m != nil {
return m.FailReason
}
return InvalidOrder_INVALID_AMT
}
func (m *InvalidOrder) GetFailString() string {
if m != nil {
return m.FailString
}
return ""
}
type Input struct {
Outpoint *OutPoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
InputValue int64 `protobuf:"varint,2,opt,name=input_value,json=inputValue,proto3" json:"input_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Input) Reset() { *m = Input{} }
func (m *Input) String() string { return proto.CompactTextString(m) }
func (*Input) ProtoMessage() {}
func (*Input) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{21}
}
func (m *Input) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Input.Unmarshal(m, b)
}
func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Input.Marshal(b, m, deterministic)
}
func (m *Input) XXX_Merge(src proto.Message) {
xxx_messageInfo_Input.Merge(m, src)
}
func (m *Input) XXX_Size() int {
return xxx_messageInfo_Input.Size(m)
}
func (m *Input) XXX_DiscardUnknown() {
xxx_messageInfo_Input.DiscardUnknown(m)
}
var xxx_messageInfo_Input proto.InternalMessageInfo
func (m *Input) GetOutpoint() *OutPoint {
if m != nil {
return m.Outpoint
}
return nil
}
func (m *Input) GetInputValue() int64 {
if m != nil {
return m.InputValue
}
return 0
}
type ServerModifyAccountRequest struct {
AccountPoint *OutPoint `protobuf:"bytes,1,opt,name=account_point,json=accountPoint,proto3" json:"account_point,omitempty"`
NewInputs *Input `protobuf:"bytes,2,opt,name=new_inputs,json=newInputs,proto3" json:"new_inputs,omitempty"`
Outputs map[int64][]byte `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
NewAccountBalance int64 `protobuf:"varint,4,opt,name=new_account_balance,json=newAccountBalance,proto3" json:"new_account_balance,omitempty"`
NewAccount *ServerInitAccountRequest `protobuf:"bytes,5,opt,name=new_account,json=newAccount,proto3" json:"new_account,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerModifyAccountRequest) Reset() { *m = ServerModifyAccountRequest{} }
func (m *ServerModifyAccountRequest) String() string { return proto.CompactTextString(m) }
func (*ServerModifyAccountRequest) ProtoMessage() {}
func (*ServerModifyAccountRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{22}
}
func (m *ServerModifyAccountRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerModifyAccountRequest.Unmarshal(m, b)
}
func (m *ServerModifyAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerModifyAccountRequest.Marshal(b, m, deterministic)
}
func (m *ServerModifyAccountRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerModifyAccountRequest.Merge(m, src)
}
func (m *ServerModifyAccountRequest) XXX_Size() int {
return xxx_messageInfo_ServerModifyAccountRequest.Size(m)
}
func (m *ServerModifyAccountRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerModifyAccountRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerModifyAccountRequest proto.InternalMessageInfo
func (m *ServerModifyAccountRequest) GetAccountPoint() *OutPoint {
if m != nil {
return m.AccountPoint
}
return nil
}
func (m *ServerModifyAccountRequest) GetNewInputs() *Input {
if m != nil {
return m.NewInputs
}
return nil
}
func (m *ServerModifyAccountRequest) GetOutputs() map[int64][]byte {
if m != nil {
return m.Outputs
}
return nil
}
func (m *ServerModifyAccountRequest) GetNewAccountBalance() int64 {
if m != nil {
return m.NewAccountBalance
}
return 0
}
func (m *ServerModifyAccountRequest) GetNewAccount() *ServerInitAccountRequest {
if m != nil {
return m.NewAccount
}
return nil
}
type ServerModifyAccountResponse struct {
NewAccountSig []byte `protobuf:"bytes,1,opt,name=new_account_sig,json=newAccountSig,proto3" json:"new_account_sig,omitempty"`
NewAccountPoint *OutPoint `protobuf:"bytes,2,opt,name=new_account_point,json=newAccountPoint,proto3" json:"new_account_point,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerModifyAccountResponse) Reset() { *m = ServerModifyAccountResponse{} }
func (m *ServerModifyAccountResponse) String() string { return proto.CompactTextString(m) }
func (*ServerModifyAccountResponse) ProtoMessage() {}
func (*ServerModifyAccountResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{23}
}
func (m *ServerModifyAccountResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerModifyAccountResponse.Unmarshal(m, b)
}
func (m *ServerModifyAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerModifyAccountResponse.Marshal(b, m, deterministic)
}
func (m *ServerModifyAccountResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerModifyAccountResponse.Merge(m, src)
}
func (m *ServerModifyAccountResponse) XXX_Size() int {
return xxx_messageInfo_ServerModifyAccountResponse.Size(m)
}
func (m *ServerModifyAccountResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerModifyAccountResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerModifyAccountResponse proto.InternalMessageInfo
func (m *ServerModifyAccountResponse) GetNewAccountSig() []byte {
if m != nil {
return m.NewAccountSig
}
return nil
}
func (m *ServerModifyAccountResponse) GetNewAccountPoint() *OutPoint {
if m != nil {
return m.NewAccountPoint
}
return nil
}
type ServerOrderStateRequest struct {
OrderNonce []byte `protobuf:"bytes,1,opt,name=order_nonce,json=orderNonce,proto3" json:"order_nonce,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerOrderStateRequest) Reset() { *m = ServerOrderStateRequest{} }
func (m *ServerOrderStateRequest) String() string { return proto.CompactTextString(m) }
func (*ServerOrderStateRequest) ProtoMessage() {}
func (*ServerOrderStateRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{24}
}
func (m *ServerOrderStateRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerOrderStateRequest.Unmarshal(m, b)
}
func (m *ServerOrderStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerOrderStateRequest.Marshal(b, m, deterministic)
}
func (m *ServerOrderStateRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerOrderStateRequest.Merge(m, src)
}
func (m *ServerOrderStateRequest) XXX_Size() int {
return xxx_messageInfo_ServerOrderStateRequest.Size(m)
}
func (m *ServerOrderStateRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ServerOrderStateRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ServerOrderStateRequest proto.InternalMessageInfo
func (m *ServerOrderStateRequest) GetOrderNonce() []byte {
if m != nil {
return m.OrderNonce
}
return nil
}
type ServerOrderStateResponse struct {
//*
//The state the order currently is in.
State ServerOrderStateResponse_OrderState `protobuf:"varint,1,opt,name=state,proto3,enum=clmrpc.ServerOrderStateResponse_OrderState" json:"state,omitempty"`
//*
//The number of currently unfilled units of this order. This will be equal to
//the total amount of units until the order has reached the state PARTIAL_FILL
//or EXECUTED.
UnitsUnfulfilled uint32 `protobuf:"varint,2,opt,name=units_unfulfilled,json=unitsUnfulfilled,proto3" json:"units_unfulfilled,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServerOrderStateResponse) Reset() { *m = ServerOrderStateResponse{} }
func (m *ServerOrderStateResponse) String() string { return proto.CompactTextString(m) }
func (*ServerOrderStateResponse) ProtoMessage() {}
func (*ServerOrderStateResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{25}
}
func (m *ServerOrderStateResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServerOrderStateResponse.Unmarshal(m, b)
}
func (m *ServerOrderStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServerOrderStateResponse.Marshal(b, m, deterministic)
}
func (m *ServerOrderStateResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServerOrderStateResponse.Merge(m, src)
}
func (m *ServerOrderStateResponse) XXX_Size() int {
return xxx_messageInfo_ServerOrderStateResponse.Size(m)
}
func (m *ServerOrderStateResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ServerOrderStateResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ServerOrderStateResponse proto.InternalMessageInfo
func (m *ServerOrderStateResponse) GetState() ServerOrderStateResponse_OrderState {
if m != nil {
return m.State
}
return ServerOrderStateResponse_SUBMITTED
}
func (m *ServerOrderStateResponse) GetUnitsUnfulfilled() uint32 {
if m != nil {
return m.UnitsUnfulfilled
}
return 0
}
type NodeAddress struct {
Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *NodeAddress) Reset() { *m = NodeAddress{} }
func (m *NodeAddress) String() string { return proto.CompactTextString(m) }
func (*NodeAddress) ProtoMessage() {}
func (*NodeAddress) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{26}
}
func (m *NodeAddress) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_NodeAddress.Unmarshal(m, b)
}
func (m *NodeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_NodeAddress.Marshal(b, m, deterministic)
}
func (m *NodeAddress) XXX_Merge(src proto.Message) {
xxx_messageInfo_NodeAddress.Merge(m, src)
}
func (m *NodeAddress) XXX_Size() int {
return xxx_messageInfo_NodeAddress.Size(m)
}
func (m *NodeAddress) XXX_DiscardUnknown() {
xxx_messageInfo_NodeAddress.DiscardUnknown(m)
}
var xxx_messageInfo_NodeAddress proto.InternalMessageInfo
func (m *NodeAddress) GetNetwork() string {
if m != nil {
return m.Network
}
return ""
}
func (m *NodeAddress) GetAddr() string {
if m != nil {
return m.Addr
}
return ""
}
type OutPoint struct {
//*
//Raw bytes representing the transaction id.
Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
//*
//The index of the output on the transaction.
OutputIndex uint32 `protobuf:"varint,2,opt,name=output_index,proto3" json:"output_index,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OutPoint) Reset() { *m = OutPoint{} }
func (m *OutPoint) String() string { return proto.CompactTextString(m) }
func (*OutPoint) ProtoMessage() {}
func (*OutPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_ad098daeda4239f7, []int{27}
}
func (m *OutPoint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OutPoint.Unmarshal(m, b)
}
func (m *OutPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OutPoint.Marshal(b, m, deterministic)
}
func (m *OutPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_OutPoint.Merge(m, src)
}
func (m *OutPoint) XXX_Size() int {
return xxx_messageInfo_OutPoint.Size(m)
}
func (m *OutPoint) XXX_DiscardUnknown() {
xxx_messageInfo_OutPoint.DiscardUnknown(m)
}
var xxx_messageInfo_OutPoint proto.InternalMessageInfo
func (m *OutPoint) GetTxid() []byte {
if m != nil {
return m.Txid
}
return nil
}
func (m *OutPoint) GetOutputIndex() uint32 {
if m != nil {
return m.OutputIndex
}
return 0
}
func init() {
proto.RegisterEnum("clmrpc.InvalidOrder_FailReason", InvalidOrder_FailReason_name, InvalidOrder_FailReason_value)
proto.RegisterEnum("clmrpc.ServerOrderStateResponse_OrderState", ServerOrderStateResponse_OrderState_name, ServerOrderStateResponse_OrderState_value)
proto.RegisterType((*ReserveAccountRequest)(nil), "clmrpc.ReserveAccountRequest")
proto.RegisterType((*ReserveAccountResponse)(nil), "clmrpc.ReserveAccountResponse")
proto.RegisterType((*ServerInitAccountRequest)(nil), "clmrpc.ServerInitAccountRequest")
proto.RegisterType((*ServerInitAccountResponse)(nil), "clmrpc.ServerInitAccountResponse")
proto.RegisterType((*ServerCloseAccountRequest)(nil), "clmrpc.ServerCloseAccountRequest")
proto.RegisterMapType((map[int64][]byte)(nil), "clmrpc.ServerCloseAccountRequest.CloseOutputsEntry")
proto.RegisterType((*ServerCloseAccountResponse)(nil), "clmrpc.ServerCloseAccountResponse")
proto.RegisterType((*ServerSubmitOrderRequest)(nil), "clmrpc.ServerSubmitOrderRequest")
proto.RegisterType((*ServerSubmitOrderResponse)(nil), "clmrpc.ServerSubmitOrderResponse")
proto.RegisterType((*ServerCancelOrderRequest)(nil), "clmrpc.ServerCancelOrderRequest")
proto.RegisterType((*ServerCancelOrderResponse)(nil), "clmrpc.ServerCancelOrderResponse")
proto.RegisterType((*ClientAuctionMessage)(nil), "clmrpc.ClientAuctionMessage")
proto.RegisterType((*OrderMatchPrepare)(nil), "clmrpc.OrderMatchPrepare")
proto.RegisterType((*OrderMatchAccept)(nil), "clmrpc.OrderMatchAccept")
proto.RegisterType((*OrderMatchSign)(nil), "clmrpc.OrderMatchSign")
proto.RegisterType((*OrderMatchFinalize)(nil), "clmrpc.OrderMatchFinalize")
proto.RegisterType((*ServerAuctionMessage)(nil), "clmrpc.ServerAuctionMessage")
proto.RegisterType((*ServerOrder)(nil), "clmrpc.ServerOrder")
proto.RegisterType((*ServerBid)(nil), "clmrpc.ServerBid")
proto.RegisterType((*ServerAsk)(nil), "clmrpc.ServerAsk")
proto.RegisterType((*CancelOrder)(nil), "clmrpc.CancelOrder")
proto.RegisterType((*InvalidOrder)(nil), "clmrpc.InvalidOrder")
proto.RegisterType((*Input)(nil), "clmrpc.Input")
proto.RegisterType((*ServerModifyAccountRequest)(nil), "clmrpc.ServerModifyAccountRequest")
proto.RegisterMapType((map[int64][]byte)(nil), "clmrpc.ServerModifyAccountRequest.OutputsEntry")
proto.RegisterType((*ServerModifyAccountResponse)(nil), "clmrpc.ServerModifyAccountResponse")
proto.RegisterType((*ServerOrderStateRequest)(nil), "clmrpc.ServerOrderStateRequest")
proto.RegisterType((*ServerOrderStateResponse)(nil), "clmrpc.ServerOrderStateResponse")
proto.RegisterType((*NodeAddress)(nil), "clmrpc.NodeAddress")
proto.RegisterType((*OutPoint)(nil), "clmrpc.OutPoint")
}
func init() { proto.RegisterFile("server.proto", fileDescriptor_ad098daeda4239f7) }
var fileDescriptor_ad098daeda4239f7 = []byte{
// 1536 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0x4b, 0x6f, 0xdb, 0xc6,
0x16, 0xd6, 0xd3, 0x96, 0x0e, 0x25, 0x87, 0x1e, 0x3b, 0x89, 0xa2, 0x38, 0x37, 0x0e, 0x83, 0x5c,
0x18, 0x48, 0xae, 0x12, 0x28, 0x08, 0x90, 0xc7, 0x05, 0x72, 0x29, 0x59, 0x86, 0xe5, 0xeb, 0x17,
0x28, 0x3b, 0xf5, 0x8e, 0xa0, 0xc4, 0x91, 0x32, 0x30, 0x3d, 0x64, 0x39, 0xa4, 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to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// ChannelAuctioneerServerClient is the client API for ChannelAuctioneerServer service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ChannelAuctioneerServerClient interface {
ReserveAccount(ctx context.Context, in *ReserveAccountRequest, opts ...grpc.CallOption) (*ReserveAccountResponse, error)
InitAccount(ctx context.Context, in *ServerInitAccountRequest, opts ...grpc.CallOption) (*ServerInitAccountResponse, error)
CloseAccount(ctx context.Context, in *ServerCloseAccountRequest, opts ...grpc.CallOption) (*ServerCloseAccountResponse, error)
ModifyAccount(ctx context.Context, in *ServerModifyAccountRequest, opts ...grpc.CallOption) (*ServerModifyAccountResponse, error)
SubmitOrder(ctx context.Context, in *ServerSubmitOrderRequest, opts ...grpc.CallOption) (*ServerSubmitOrderResponse, error)
CancelOrder(ctx context.Context, in *ServerCancelOrderRequest, opts ...grpc.CallOption) (*ServerCancelOrderResponse, error)
OrderState(ctx context.Context, in *ServerOrderStateRequest, opts ...grpc.CallOption) (*ServerOrderStateResponse, error)
SubscribeBatchAuction(ctx context.Context, opts ...grpc.CallOption) (ChannelAuctioneerServer_SubscribeBatchAuctionClient, error)
}
type channelAuctioneerServerClient struct {
cc *grpc.ClientConn
}
func NewChannelAuctioneerServerClient(cc *grpc.ClientConn) ChannelAuctioneerServerClient {
return &channelAuctioneerServerClient{cc}
}
func (c *channelAuctioneerServerClient) ReserveAccount(ctx context.Context, in *ReserveAccountRequest, opts ...grpc.CallOption) (*ReserveAccountResponse, error) {
out := new(ReserveAccountResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/ReserveAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) InitAccount(ctx context.Context, in *ServerInitAccountRequest, opts ...grpc.CallOption) (*ServerInitAccountResponse, error) {
out := new(ServerInitAccountResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/InitAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) CloseAccount(ctx context.Context, in *ServerCloseAccountRequest, opts ...grpc.CallOption) (*ServerCloseAccountResponse, error) {
out := new(ServerCloseAccountResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/CloseAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) ModifyAccount(ctx context.Context, in *ServerModifyAccountRequest, opts ...grpc.CallOption) (*ServerModifyAccountResponse, error) {
out := new(ServerModifyAccountResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/ModifyAccount", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) SubmitOrder(ctx context.Context, in *ServerSubmitOrderRequest, opts ...grpc.CallOption) (*ServerSubmitOrderResponse, error) {
out := new(ServerSubmitOrderResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/SubmitOrder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) CancelOrder(ctx context.Context, in *ServerCancelOrderRequest, opts ...grpc.CallOption) (*ServerCancelOrderResponse, error) {
out := new(ServerCancelOrderResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/CancelOrder", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) OrderState(ctx context.Context, in *ServerOrderStateRequest, opts ...grpc.CallOption) (*ServerOrderStateResponse, error) {
out := new(ServerOrderStateResponse)
err := c.cc.Invoke(ctx, "/clmrpc.ChannelAuctioneerServer/OrderState", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *channelAuctioneerServerClient) SubscribeBatchAuction(ctx context.Context, opts ...grpc.CallOption) (ChannelAuctioneerServer_SubscribeBatchAuctionClient, error) {
stream, err := c.cc.NewStream(ctx, &_ChannelAuctioneerServer_serviceDesc.Streams[0], "/clmrpc.ChannelAuctioneerServer/SubscribeBatchAuction", opts...)
if err != nil {
return nil, err
}
x := &channelAuctioneerServerSubscribeBatchAuctionClient{stream}
return x, nil
}
type ChannelAuctioneerServer_SubscribeBatchAuctionClient interface {
Send(*ClientAuctionMessage) error
Recv() (*ServerAuctionMessage, error)
grpc.ClientStream
}
type channelAuctioneerServerSubscribeBatchAuctionClient struct {
grpc.ClientStream
}
func (x *channelAuctioneerServerSubscribeBatchAuctionClient) Send(m *ClientAuctionMessage) error {
return x.ClientStream.SendMsg(m)
}
func (x *channelAuctioneerServerSubscribeBatchAuctionClient) Recv() (*ServerAuctionMessage, error) {
m := new(ServerAuctionMessage)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// ChannelAuctioneerServerServer is the server API for ChannelAuctioneerServer service.
type ChannelAuctioneerServerServer interface {
ReserveAccount(context.Context, *ReserveAccountRequest) (*ReserveAccountResponse, error)
InitAccount(context.Context, *ServerInitAccountRequest) (*ServerInitAccountResponse, error)
CloseAccount(context.Context, *ServerCloseAccountRequest) (*ServerCloseAccountResponse, error)
ModifyAccount(context.Context, *ServerModifyAccountRequest) (*ServerModifyAccountResponse, error)
SubmitOrder(context.Context, *ServerSubmitOrderRequest) (*ServerSubmitOrderResponse, error)
CancelOrder(context.Context, *ServerCancelOrderRequest) (*ServerCancelOrderResponse, error)
OrderState(context.Context, *ServerOrderStateRequest) (*ServerOrderStateResponse, error)
SubscribeBatchAuction(ChannelAuctioneerServer_SubscribeBatchAuctionServer) error
}
func RegisterChannelAuctioneerServerServer(s *grpc.Server, srv ChannelAuctioneerServerServer) {
s.RegisterService(&_ChannelAuctioneerServer_serviceDesc, srv)
}
func _ChannelAuctioneerServer_ReserveAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ReserveAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).ReserveAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/ReserveAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).ReserveAccount(ctx, req.(*ReserveAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_InitAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerInitAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).InitAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/InitAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).InitAccount(ctx, req.(*ServerInitAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_CloseAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerCloseAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).CloseAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/CloseAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).CloseAccount(ctx, req.(*ServerCloseAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_ModifyAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerModifyAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).ModifyAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/ModifyAccount",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).ModifyAccount(ctx, req.(*ServerModifyAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_SubmitOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerSubmitOrderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).SubmitOrder(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/SubmitOrder",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).SubmitOrder(ctx, req.(*ServerSubmitOrderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_CancelOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerCancelOrderRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).CancelOrder(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/CancelOrder",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).CancelOrder(ctx, req.(*ServerCancelOrderRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_OrderState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServerOrderStateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ChannelAuctioneerServerServer).OrderState(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clmrpc.ChannelAuctioneerServer/OrderState",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ChannelAuctioneerServerServer).OrderState(ctx, req.(*ServerOrderStateRequest))
}
return interceptor(ctx, in, info, handler)
}
func _ChannelAuctioneerServer_SubscribeBatchAuction_Handler(srv interface{}, stream grpc.ServerStream) error {
return srv.(ChannelAuctioneerServerServer).SubscribeBatchAuction(&channelAuctioneerServerSubscribeBatchAuctionServer{stream})
}
type ChannelAuctioneerServer_SubscribeBatchAuctionServer interface {
Send(*ServerAuctionMessage) error
Recv() (*ClientAuctionMessage, error)
grpc.ServerStream
}
type channelAuctioneerServerSubscribeBatchAuctionServer struct {
grpc.ServerStream
}
func (x *channelAuctioneerServerSubscribeBatchAuctionServer) Send(m *ServerAuctionMessage) error {
return x.ServerStream.SendMsg(m)
}
func (x *channelAuctioneerServerSubscribeBatchAuctionServer) Recv() (*ClientAuctionMessage, error) {
m := new(ClientAuctionMessage)
if err := x.ServerStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
var _ChannelAuctioneerServer_serviceDesc = grpc.ServiceDesc{
ServiceName: "clmrpc.ChannelAuctioneerServer",
HandlerType: (*ChannelAuctioneerServerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ReserveAccount",
Handler: _ChannelAuctioneerServer_ReserveAccount_Handler,
},
{
MethodName: "InitAccount",
Handler: _ChannelAuctioneerServer_InitAccount_Handler,
},
{
MethodName: "CloseAccount",
Handler: _ChannelAuctioneerServer_CloseAccount_Handler,
},
{
MethodName: "ModifyAccount",
Handler: _ChannelAuctioneerServer_ModifyAccount_Handler,
},
{
MethodName: "SubmitOrder",
Handler: _ChannelAuctioneerServer_SubmitOrder_Handler,
},
{
MethodName: "CancelOrder",
Handler: _ChannelAuctioneerServer_CancelOrder_Handler,
},
{
MethodName: "OrderState",
Handler: _ChannelAuctioneerServer_OrderState_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "SubscribeBatchAuction",
Handler: _ChannelAuctioneerServer_SubscribeBatchAuction_Handler,
ServerStreams: true,
ClientStreams: true,
},
},
Metadata: "server.proto",
}