proto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 15 Imported by: 0

README

How to generate files


# grpc apis
protoc -I. -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=plugins=grpc:. types.proto

# grpc-gateway apis 
protoc -I. -I$GOPATH/src -I$I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:. types.proto

# swagger apis
protoc -I. -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --swagger_out=logtostderr=true:. types.proto

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_types_proto protoreflect.FileDescriptor

Functions

func RegisterChainAPIHandler

func RegisterChainAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterChainAPIHandler registers the http handlers for service ChainAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterChainAPIHandlerClient

func RegisterChainAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ChainAPIClient) error

RegisterChainAPIHandlerClient registers the http handlers for service ChainAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ChainAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ChainAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ChainAPIClient" to call the correct interceptors.

func RegisterChainAPIHandlerFromEndpoint

func RegisterChainAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterChainAPIHandlerFromEndpoint is same as RegisterChainAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterChainAPIServer

func RegisterChainAPIServer(s *grpc.Server, srv ChainAPIServer)

func RegisterOrchestraAPIHandler

func RegisterOrchestraAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOrchestraAPIHandler registers the http handlers for service OrchestraAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOrchestraAPIHandlerClient

func RegisterOrchestraAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrchestraAPIClient) error

RegisterOrchestraAPIHandlerClient registers the http handlers for service OrchestraAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrchestraAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrchestraAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrchestraAPIClient" to call the correct interceptors.

func RegisterOrchestraAPIHandlerFromEndpoint

func RegisterOrchestraAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOrchestraAPIHandlerFromEndpoint is same as RegisterOrchestraAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOrchestraAPIServer

func RegisterOrchestraAPIServer(s *grpc.Server, srv OrchestraAPIServer)

func RegisterOrderAPIHandler

func RegisterOrderAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterOrderAPIHandler registers the http handlers for service OrderAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterOrderAPIHandlerClient

func RegisterOrderAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client OrderAPIClient) error

RegisterOrderAPIHandlerClient registers the http handlers for service OrderAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OrderAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OrderAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OrderAPIClient" to call the correct interceptors.

func RegisterOrderAPIHandlerFromEndpoint

func RegisterOrderAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterOrderAPIHandlerFromEndpoint is same as RegisterOrderAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterOrderAPIServer

func RegisterOrderAPIServer(s *grpc.Server, srv OrderAPIServer)

Types

type ChainAPIClient

type ChainAPIClient interface {
	Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error)
}

ChainAPIClient is the client API for ChainAPI service.

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

func NewChainAPIClient

func NewChainAPIClient(cc grpc.ClientConnInterface) ChainAPIClient

type ChainAPIServer

type ChainAPIServer interface {
	Version(context.Context, *VersionRequest) (*VersionResponse, error)
}

ChainAPIServer is the server API for ChainAPI service.

type ChangeConnectionParam

type ChangeConnectionParam struct {
	ProductId    string                  `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"`
	DynamicParam *ConnectionDynamicParam `protobuf:"bytes,2,opt,name=dynamicParam,proto3" json:"dynamicParam,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeConnectionParam) Descriptor deprecated

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

Deprecated: Use ChangeConnectionParam.ProtoReflect.Descriptor instead.

func (*ChangeConnectionParam) GetDynamicParam

func (x *ChangeConnectionParam) GetDynamicParam() *ConnectionDynamicParam

func (*ChangeConnectionParam) GetProductId

func (x *ChangeConnectionParam) GetProductId() string

func (*ChangeConnectionParam) ProtoMessage

func (*ChangeConnectionParam) ProtoMessage()

func (*ChangeConnectionParam) ProtoReflect

func (x *ChangeConnectionParam) ProtoReflect() protoreflect.Message

func (*ChangeConnectionParam) Reset

func (x *ChangeConnectionParam) Reset()

func (*ChangeConnectionParam) String

func (x *ChangeConnectionParam) String() string

type ChangeOrderParam

type ChangeOrderParam struct {
	Privacy               *ContractPrivacyParam    `protobuf:"bytes,1,opt,name=privacy,proto3" json:"privacy,omitempty"`
	Buyer                 *User                    `protobuf:"bytes,2,opt,name=buyer,proto3" json:"buyer,omitempty"`
	Seller                *User                    `protobuf:"bytes,3,opt,name=seller,proto3" json:"seller,omitempty"`
	ChangeConnectionParam []*ChangeConnectionParam `protobuf:"bytes,4,rep,name=changeConnectionParam,proto3" json:"changeConnectionParam,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeOrderParam) Descriptor deprecated

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

Deprecated: Use ChangeOrderParam.ProtoReflect.Descriptor instead.

func (*ChangeOrderParam) GetBuyer

func (x *ChangeOrderParam) GetBuyer() *User

func (*ChangeOrderParam) GetChangeConnectionParam

func (x *ChangeOrderParam) GetChangeConnectionParam() []*ChangeConnectionParam

func (*ChangeOrderParam) GetPrivacy

func (x *ChangeOrderParam) GetPrivacy() *ContractPrivacyParam

func (*ChangeOrderParam) GetSeller

func (x *ChangeOrderParam) GetSeller() *User

func (*ChangeOrderParam) ProtoMessage

func (*ChangeOrderParam) ProtoMessage()

func (*ChangeOrderParam) ProtoReflect

func (x *ChangeOrderParam) ProtoReflect() protoreflect.Message

func (*ChangeOrderParam) Reset

func (x *ChangeOrderParam) Reset()

func (*ChangeOrderParam) String

func (x *ChangeOrderParam) String() string

type ConnectionDynamicParam

type ConnectionDynamicParam struct {
	OrderId           string  `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"`
	InternalId        string  `protobuf:"bytes,2,opt,name=InternalId,proto3" json:"InternalId,omitempty"`
	ItemId            string  `protobuf:"bytes,3,opt,name=ItemId,proto3" json:"ItemId,omitempty"`
	OrderItemId       string  `protobuf:"bytes,4,opt,name=OrderItemId,proto3" json:"OrderItemId,omitempty"`
	QuoteId           string  `protobuf:"bytes,5,opt,name=quoteId,proto3" json:"quoteId,omitempty"`
	QuoteItemId       string  `protobuf:"bytes,6,opt,name=quoteItemId,proto3" json:"quoteItemId,omitempty"`
	ConnectionName    string  `protobuf:"bytes,7,opt,name=connectionName,proto3" json:"connectionName,omitempty"`
	PaymentType       string  `protobuf:"bytes,8,opt,name=paymentType,proto3" json:"paymentType,omitempty"`
	BillingType       string  `protobuf:"bytes,9,opt,name=billingType,proto3" json:"billingType,omitempty"`
	Currency          string  `protobuf:"bytes,10,opt,name=currency,proto3" json:"currency,omitempty"`
	ServiceClass      string  `protobuf:"bytes,11,opt,name=serviceClass,proto3" json:"serviceClass,omitempty"`
	Bandwidth         string  `protobuf:"bytes,12,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`
	BillingUnit       string  `protobuf:"bytes,13,opt,name=billingUnit,proto3" json:"billingUnit,omitempty"`
	Price             float32 `protobuf:"fixed32,14,opt,name=price,proto3" json:"price,omitempty"`
	Addition          float32 `protobuf:"fixed32,15,opt,name=Addition,proto3" json:"Addition,omitempty"`
	StartTime         int64   `protobuf:"varint,16,opt,name=startTime,proto3" json:"startTime,omitempty"`
	StartTimeStr      string  `protobuf:"bytes,17,opt,name=startTimeStr,proto3" json:"startTimeStr,omitempty"`
	EndTime           int64   `protobuf:"varint,18,opt,name=endTime,proto3" json:"endTime,omitempty"`
	EndTimeStrTimeStr string  `protobuf:"bytes,19,opt,name=endTimeStrTimeStr,proto3" json:"endTimeStrTimeStr,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionDynamicParam) Descriptor deprecated

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

Deprecated: Use ConnectionDynamicParam.ProtoReflect.Descriptor instead.

func (*ConnectionDynamicParam) GetAddition

func (x *ConnectionDynamicParam) GetAddition() float32

func (*ConnectionDynamicParam) GetBandwidth

func (x *ConnectionDynamicParam) GetBandwidth() string

func (*ConnectionDynamicParam) GetBillingType

func (x *ConnectionDynamicParam) GetBillingType() string

func (*ConnectionDynamicParam) GetBillingUnit

func (x *ConnectionDynamicParam) GetBillingUnit() string

func (*ConnectionDynamicParam) GetConnectionName

func (x *ConnectionDynamicParam) GetConnectionName() string

func (*ConnectionDynamicParam) GetCurrency

func (x *ConnectionDynamicParam) GetCurrency() string

func (*ConnectionDynamicParam) GetEndTime

func (x *ConnectionDynamicParam) GetEndTime() int64

func (*ConnectionDynamicParam) GetEndTimeStrTimeStr

func (x *ConnectionDynamicParam) GetEndTimeStrTimeStr() string

func (*ConnectionDynamicParam) GetInternalId

func (x *ConnectionDynamicParam) GetInternalId() string

func (*ConnectionDynamicParam) GetItemId

func (x *ConnectionDynamicParam) GetItemId() string

func (*ConnectionDynamicParam) GetOrderId

func (x *ConnectionDynamicParam) GetOrderId() string

func (*ConnectionDynamicParam) GetOrderItemId

func (x *ConnectionDynamicParam) GetOrderItemId() string

func (*ConnectionDynamicParam) GetPaymentType

func (x *ConnectionDynamicParam) GetPaymentType() string

func (*ConnectionDynamicParam) GetPrice

func (x *ConnectionDynamicParam) GetPrice() float32

func (*ConnectionDynamicParam) GetQuoteId

func (x *ConnectionDynamicParam) GetQuoteId() string

func (*ConnectionDynamicParam) GetQuoteItemId

func (x *ConnectionDynamicParam) GetQuoteItemId() string

func (*ConnectionDynamicParam) GetServiceClass

func (x *ConnectionDynamicParam) GetServiceClass() string

func (*ConnectionDynamicParam) GetStartTime

func (x *ConnectionDynamicParam) GetStartTime() int64

func (*ConnectionDynamicParam) GetStartTimeStr

func (x *ConnectionDynamicParam) GetStartTimeStr() string

func (*ConnectionDynamicParam) ProtoMessage

func (*ConnectionDynamicParam) ProtoMessage()

func (*ConnectionDynamicParam) ProtoReflect

func (x *ConnectionDynamicParam) ProtoReflect() protoreflect.Message

func (*ConnectionDynamicParam) Reset

func (x *ConnectionDynamicParam) Reset()

func (*ConnectionDynamicParam) String

func (x *ConnectionDynamicParam) String() string

type ConnectionParam

type ConnectionParam struct {
	StaticParam  *ConnectionStaticParam  `protobuf:"bytes,1,opt,name=staticParam,proto3" json:"staticParam,omitempty"`
	DynamicParam *ConnectionDynamicParam `protobuf:"bytes,2,opt,name=dynamicParam,proto3" json:"dynamicParam,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionParam) Descriptor deprecated

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

Deprecated: Use ConnectionParam.ProtoReflect.Descriptor instead.

func (*ConnectionParam) GetDynamicParam

func (x *ConnectionParam) GetDynamicParam() *ConnectionDynamicParam

func (*ConnectionParam) GetStaticParam

func (x *ConnectionParam) GetStaticParam() *ConnectionStaticParam

func (*ConnectionParam) ProtoMessage

func (*ConnectionParam) ProtoMessage()

func (*ConnectionParam) ProtoReflect

func (x *ConnectionParam) ProtoReflect() protoreflect.Message

func (*ConnectionParam) Reset

func (x *ConnectionParam) Reset()

func (*ConnectionParam) String

func (x *ConnectionParam) String() string

type ConnectionStaticParam

type ConnectionStaticParam struct {
	BuyerProductId    string `protobuf:"bytes,1,opt,name=buyerProductId,proto3" json:"buyerProductId,omitempty"`
	ProductOfferingId string `protobuf:"bytes,2,opt,name=ProductOfferingId,proto3" json:"ProductOfferingId,omitempty"`
	ProductId         string `protobuf:"bytes,3,opt,name=productId,proto3" json:"productId,omitempty"`
	SrcCompanyName    string `protobuf:"bytes,4,opt,name=srcCompanyName,proto3" json:"srcCompanyName,omitempty"`
	SrcRegion         string `protobuf:"bytes,5,opt,name=srcRegion,proto3" json:"srcRegion,omitempty"`
	SrcCity           string `protobuf:"bytes,6,opt,name=srcCity,proto3" json:"srcCity,omitempty"`
	SrcDataCenter     string `protobuf:"bytes,7,opt,name=srcDataCenter,proto3" json:"srcDataCenter,omitempty"`
	SrcPort           string `protobuf:"bytes,8,opt,name=srcPort,proto3" json:"srcPort,omitempty"`
	DstCompanyName    string `protobuf:"bytes,9,opt,name=dstCompanyName,proto3" json:"dstCompanyName,omitempty"`
	DstRegion         string `protobuf:"bytes,10,opt,name=dstRegion,proto3" json:"dstRegion,omitempty"`
	DstCity           string `protobuf:"bytes,11,opt,name=dstCity,proto3" json:"dstCity,omitempty"`
	DstDataCenter     string `protobuf:"bytes,12,opt,name=dstDataCenter,proto3" json:"dstDataCenter,omitempty"`
	DstPort           string `protobuf:"bytes,13,opt,name=dstPort,proto3" json:"dstPort,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectionStaticParam) Descriptor deprecated

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

Deprecated: Use ConnectionStaticParam.ProtoReflect.Descriptor instead.

func (*ConnectionStaticParam) GetBuyerProductId

func (x *ConnectionStaticParam) GetBuyerProductId() string

func (*ConnectionStaticParam) GetDstCity

func (x *ConnectionStaticParam) GetDstCity() string

func (*ConnectionStaticParam) GetDstCompanyName

func (x *ConnectionStaticParam) GetDstCompanyName() string

func (*ConnectionStaticParam) GetDstDataCenter

func (x *ConnectionStaticParam) GetDstDataCenter() string

func (*ConnectionStaticParam) GetDstPort

func (x *ConnectionStaticParam) GetDstPort() string

func (*ConnectionStaticParam) GetDstRegion

func (x *ConnectionStaticParam) GetDstRegion() string

func (*ConnectionStaticParam) GetProductId

func (x *ConnectionStaticParam) GetProductId() string

func (*ConnectionStaticParam) GetProductOfferingId

func (x *ConnectionStaticParam) GetProductOfferingId() string

func (*ConnectionStaticParam) GetSrcCity

func (x *ConnectionStaticParam) GetSrcCity() string

func (*ConnectionStaticParam) GetSrcCompanyName

func (x *ConnectionStaticParam) GetSrcCompanyName() string

func (*ConnectionStaticParam) GetSrcDataCenter

func (x *ConnectionStaticParam) GetSrcDataCenter() string

func (*ConnectionStaticParam) GetSrcPort

func (x *ConnectionStaticParam) GetSrcPort() string

func (*ConnectionStaticParam) GetSrcRegion

func (x *ConnectionStaticParam) GetSrcRegion() string

func (*ConnectionStaticParam) ProtoMessage

func (*ConnectionStaticParam) ProtoMessage()

func (*ConnectionStaticParam) ProtoReflect

func (x *ConnectionStaticParam) ProtoReflect() protoreflect.Message

func (*ConnectionStaticParam) Reset

func (x *ConnectionStaticParam) Reset()

func (*ConnectionStaticParam) String

func (x *ConnectionStaticParam) String() string

type ContractPrivacyParam

type ContractPrivacyParam struct {
	PrivateFrom    string   `protobuf:"bytes,1,opt,name=privateFrom,proto3" json:"privateFrom,omitempty"`
	PrivateFor     []string `protobuf:"bytes,2,rep,name=privateFor,proto3" json:"privateFor,omitempty"`
	PrivateGroupID string   `protobuf:"bytes,3,opt,name=privateGroupID,proto3" json:"privateGroupID,omitempty"`
	// contains filtered or unexported fields
}

func (*ContractPrivacyParam) Descriptor deprecated

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

Deprecated: Use ContractPrivacyParam.ProtoReflect.Descriptor instead.

func (*ContractPrivacyParam) GetPrivateFor

func (x *ContractPrivacyParam) GetPrivateFor() []string

func (*ContractPrivacyParam) GetPrivateFrom

func (x *ContractPrivacyParam) GetPrivateFrom() string

func (*ContractPrivacyParam) GetPrivateGroupID

func (x *ContractPrivacyParam) GetPrivateGroupID() string

func (*ContractPrivacyParam) ProtoMessage

func (*ContractPrivacyParam) ProtoMessage()

func (*ContractPrivacyParam) ProtoReflect

func (x *ContractPrivacyParam) ProtoReflect() protoreflect.Message

func (*ContractPrivacyParam) Reset

func (x *ContractPrivacyParam) Reset()

func (*ContractPrivacyParam) String

func (x *ContractPrivacyParam) String() string

type CreateOrderParam

type CreateOrderParam struct {
	Privacy         *ContractPrivacyParam `protobuf:"bytes,1,opt,name=privacy,proto3" json:"privacy,omitempty"`
	Buyer           *User                 `protobuf:"bytes,2,opt,name=buyer,proto3" json:"buyer,omitempty"`
	Seller          *User                 `protobuf:"bytes,3,opt,name=seller,proto3" json:"seller,omitempty"`
	ConnectionParam []*ConnectionParam    `protobuf:"bytes,4,rep,name=connectionParam,proto3" json:"connectionParam,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrderParam) Descriptor deprecated

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

Deprecated: Use CreateOrderParam.ProtoReflect.Descriptor instead.

func (*CreateOrderParam) GetBuyer

func (x *CreateOrderParam) GetBuyer() *User

func (*CreateOrderParam) GetConnectionParam

func (x *CreateOrderParam) GetConnectionParam() []*ConnectionParam

func (*CreateOrderParam) GetPrivacy

func (x *CreateOrderParam) GetPrivacy() *ContractPrivacyParam

func (*CreateOrderParam) GetSeller

func (x *CreateOrderParam) GetSeller() *User

func (*CreateOrderParam) ProtoMessage

func (*CreateOrderParam) ProtoMessage()

func (*CreateOrderParam) ProtoReflect

func (x *CreateOrderParam) ProtoReflect() protoreflect.Message

func (*CreateOrderParam) Reset

func (x *CreateOrderParam) Reset()

func (*CreateOrderParam) String

func (x *CreateOrderParam) String() string

type GetOrderInfoParam

type GetOrderInfoParam struct {
	InternalId string `protobuf:"bytes,1,opt,name=internalId,proto3" json:"internalId,omitempty"`
	Seller     *User  `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"`
	OrderId    string `protobuf:"bytes,3,opt,name=orderId,proto3" json:"orderId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetOrderInfoParam) Descriptor deprecated

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

Deprecated: Use GetOrderInfoParam.ProtoReflect.Descriptor instead.

func (*GetOrderInfoParam) GetInternalId

func (x *GetOrderInfoParam) GetInternalId() string

func (*GetOrderInfoParam) GetOrderId

func (x *GetOrderInfoParam) GetOrderId() string

func (*GetOrderInfoParam) GetSeller

func (x *GetOrderInfoParam) GetSeller() *User

func (*GetOrderInfoParam) ProtoMessage

func (*GetOrderInfoParam) ProtoMessage()

func (*GetOrderInfoParam) ProtoReflect

func (x *GetOrderInfoParam) ProtoReflect() protoreflect.Message

func (*GetOrderInfoParam) Reset

func (x *GetOrderInfoParam) Reset()

func (*GetOrderInfoParam) String

func (x *GetOrderInfoParam) String() string

type OrchestraAPIClient

type OrchestraAPIClient interface {
	ExecCreate(ctx context.Context, in *OrchestraCommonRequest, opts ...grpc.CallOption) (*OrchestraCommonResponse, error)
	ExecFind(ctx context.Context, in *OrchestraCommonRequest, opts ...grpc.CallOption) (*OrchestraCommonResponse, error)
	ExecGet(ctx context.Context, in *OrchestraCommonRequest, opts ...grpc.CallOption) (*OrchestraCommonResponse, error)
}

OrchestraAPIClient is the client API for OrchestraAPI service.

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

type OrchestraAPIServer

OrchestraAPIServer is the server API for OrchestraAPI service.

type OrchestraCommonRequest

type OrchestraCommonRequest struct {
	Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	Data   string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*OrchestraCommonRequest) Descriptor deprecated

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

Deprecated: Use OrchestraCommonRequest.ProtoReflect.Descriptor instead.

func (*OrchestraCommonRequest) GetAction

func (x *OrchestraCommonRequest) GetAction() string

func (*OrchestraCommonRequest) GetData

func (x *OrchestraCommonRequest) GetData() string

func (*OrchestraCommonRequest) ProtoMessage

func (*OrchestraCommonRequest) ProtoMessage()

func (*OrchestraCommonRequest) ProtoReflect

func (x *OrchestraCommonRequest) ProtoReflect() protoreflect.Message

func (*OrchestraCommonRequest) Reset

func (x *OrchestraCommonRequest) Reset()

func (*OrchestraCommonRequest) String

func (x *OrchestraCommonRequest) String() string

type OrchestraCommonResponse

type OrchestraCommonResponse struct {
	Action      string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
	TotalCount  int32  `protobuf:"varint,2,opt,name=totalCount,proto3" json:"totalCount,omitempty"`
	ResultCount int32  `protobuf:"varint,3,opt,name=resultCount,proto3" json:"resultCount,omitempty"`
	Data        string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*OrchestraCommonResponse) Descriptor deprecated

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

Deprecated: Use OrchestraCommonResponse.ProtoReflect.Descriptor instead.

func (*OrchestraCommonResponse) GetAction

func (x *OrchestraCommonResponse) GetAction() string

func (*OrchestraCommonResponse) GetData

func (x *OrchestraCommonResponse) GetData() string

func (*OrchestraCommonResponse) GetResultCount

func (x *OrchestraCommonResponse) GetResultCount() int32

func (*OrchestraCommonResponse) GetTotalCount

func (x *OrchestraCommonResponse) GetTotalCount() int32

func (*OrchestraCommonResponse) ProtoMessage

func (*OrchestraCommonResponse) ProtoMessage()

func (*OrchestraCommonResponse) ProtoReflect

func (x *OrchestraCommonResponse) ProtoReflect() protoreflect.Message

func (*OrchestraCommonResponse) Reset

func (x *OrchestraCommonResponse) Reset()

func (*OrchestraCommonResponse) String

func (x *OrchestraCommonResponse) String() string

type OrderAPIClient

type OrderAPIClient interface {
	CreateOrder(ctx context.Context, in *CreateOrderParam, opts ...grpc.CallOption) (*OrderId, error)
	GetOrderInfo(ctx context.Context, in *GetOrderInfoParam, opts ...grpc.CallOption) (*OrderInfo, error)
	ChangeOrder(ctx context.Context, in *ChangeOrderParam, opts ...grpc.CallOption) (*OrderId, error)
	TerminateOrder(ctx context.Context, in *TerminateOrderParam, opts ...grpc.CallOption) (*OrderId, error)
}

OrderAPIClient is the client API for OrderAPI service.

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

func NewOrderAPIClient

func NewOrderAPIClient(cc grpc.ClientConnInterface) OrderAPIClient

type OrderAPIServer

type OrderAPIServer interface {
	CreateOrder(context.Context, *CreateOrderParam) (*OrderId, error)
	GetOrderInfo(context.Context, *GetOrderInfoParam) (*OrderInfo, error)
	ChangeOrder(context.Context, *ChangeOrderParam) (*OrderId, error)
	TerminateOrder(context.Context, *TerminateOrderParam) (*OrderId, error)
}

OrderAPIServer is the server API for OrderAPI service.

type OrderId

type OrderId struct {
	InternalId string `protobuf:"bytes,1,opt,name=internalId,proto3" json:"internalId,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderId) Descriptor deprecated

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

Deprecated: Use OrderId.ProtoReflect.Descriptor instead.

func (*OrderId) GetInternalId

func (x *OrderId) GetInternalId() string

func (*OrderId) ProtoMessage

func (*OrderId) ProtoMessage()

func (*OrderId) ProtoReflect

func (x *OrderId) ProtoReflect() protoreflect.Message

func (*OrderId) Reset

func (x *OrderId) Reset()

func (*OrderId) String

func (x *OrderId) String() string

type OrderInfo

type OrderInfo struct {
	Buyer         *User              `protobuf:"bytes,1,opt,name=buyer,proto3" json:"buyer,omitempty"`
	Seller        *User              `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"`
	OrderId       string             `protobuf:"bytes,3,opt,name=orderId,proto3" json:"orderId,omitempty"`
	OrderType     string             `protobuf:"bytes,4,opt,name=orderType,proto3" json:"orderType,omitempty"`
	OrderState    string             `protobuf:"bytes,5,opt,name=orderState,proto3" json:"orderState,omitempty"`
	ContractState string             `protobuf:"bytes,6,opt,name=contractState,proto3" json:"contractState,omitempty"`
	Connections   []*ConnectionParam `protobuf:"bytes,7,rep,name=connections,proto3" json:"connections,omitempty"`
	Track         []*OrderLifeTrack  `protobuf:"bytes,8,rep,name=track,proto3" json:"track,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderInfo) Descriptor deprecated

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

Deprecated: Use OrderInfo.ProtoReflect.Descriptor instead.

func (*OrderInfo) GetBuyer

func (x *OrderInfo) GetBuyer() *User

func (*OrderInfo) GetConnections

func (x *OrderInfo) GetConnections() []*ConnectionParam

func (*OrderInfo) GetContractState

func (x *OrderInfo) GetContractState() string

func (*OrderInfo) GetOrderId

func (x *OrderInfo) GetOrderId() string

func (*OrderInfo) GetOrderState

func (x *OrderInfo) GetOrderState() string

func (*OrderInfo) GetOrderType

func (x *OrderInfo) GetOrderType() string

func (*OrderInfo) GetSeller

func (x *OrderInfo) GetSeller() *User

func (*OrderInfo) GetTrack

func (x *OrderInfo) GetTrack() []*OrderLifeTrack

func (*OrderInfo) ProtoMessage

func (*OrderInfo) ProtoMessage()

func (*OrderInfo) ProtoReflect

func (x *OrderInfo) ProtoReflect() protoreflect.Message

func (*OrderInfo) Reset

func (x *OrderInfo) Reset()

func (*OrderInfo) String

func (x *OrderInfo) String() string

type OrderLifeTrack

type OrderLifeTrack struct {
	ContractState string `protobuf:"bytes,1,opt,name=contractState,proto3" json:"contractState,omitempty"`
	OrderState    string `protobuf:"bytes,2,opt,name=orderState,proto3" json:"orderState,omitempty"`
	Reason        string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
	Time          int64  `protobuf:"varint,4,opt,name=time,proto3" json:"time,omitempty"`
	Hash          string `protobuf:"bytes,5,opt,name=Hash,proto3" json:"Hash,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderLifeTrack) Descriptor deprecated

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

Deprecated: Use OrderLifeTrack.ProtoReflect.Descriptor instead.

func (*OrderLifeTrack) GetContractState

func (x *OrderLifeTrack) GetContractState() string

func (*OrderLifeTrack) GetHash

func (x *OrderLifeTrack) GetHash() string

func (*OrderLifeTrack) GetOrderState

func (x *OrderLifeTrack) GetOrderState() string

func (*OrderLifeTrack) GetReason

func (x *OrderLifeTrack) GetReason() string

func (*OrderLifeTrack) GetTime

func (x *OrderLifeTrack) GetTime() int64

func (*OrderLifeTrack) ProtoMessage

func (*OrderLifeTrack) ProtoMessage()

func (*OrderLifeTrack) ProtoReflect

func (x *OrderLifeTrack) ProtoReflect() protoreflect.Message

func (*OrderLifeTrack) Reset

func (x *OrderLifeTrack) Reset()

func (*OrderLifeTrack) String

func (x *OrderLifeTrack) String() string

type TerminateConnectionParam

type TerminateConnectionParam struct {
	ProductId    string                  `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"`
	DynamicParam *ConnectionDynamicParam `protobuf:"bytes,2,opt,name=dynamicParam,proto3" json:"dynamicParam,omitempty"`
	// contains filtered or unexported fields
}

func (*TerminateConnectionParam) Descriptor deprecated

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

Deprecated: Use TerminateConnectionParam.ProtoReflect.Descriptor instead.

func (*TerminateConnectionParam) GetDynamicParam

func (x *TerminateConnectionParam) GetDynamicParam() *ConnectionDynamicParam

func (*TerminateConnectionParam) GetProductId

func (x *TerminateConnectionParam) GetProductId() string

func (*TerminateConnectionParam) ProtoMessage

func (*TerminateConnectionParam) ProtoMessage()

func (*TerminateConnectionParam) ProtoReflect

func (x *TerminateConnectionParam) ProtoReflect() protoreflect.Message

func (*TerminateConnectionParam) Reset

func (x *TerminateConnectionParam) Reset()

func (*TerminateConnectionParam) String

func (x *TerminateConnectionParam) String() string

type TerminateOrderParam

type TerminateOrderParam struct {
	Privacy                  *ContractPrivacyParam       `protobuf:"bytes,1,opt,name=privacy,proto3" json:"privacy,omitempty"`
	Buyer                    *User                       `protobuf:"bytes,2,opt,name=buyer,proto3" json:"buyer,omitempty"`
	Seller                   *User                       `protobuf:"bytes,3,opt,name=seller,proto3" json:"seller,omitempty"`
	TerminateConnectionParam []*TerminateConnectionParam `protobuf:"bytes,4,rep,name=terminateConnectionParam,proto3" json:"terminateConnectionParam,omitempty"`
	// contains filtered or unexported fields
}

func (*TerminateOrderParam) Descriptor deprecated

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

Deprecated: Use TerminateOrderParam.ProtoReflect.Descriptor instead.

func (*TerminateOrderParam) GetBuyer

func (x *TerminateOrderParam) GetBuyer() *User

func (*TerminateOrderParam) GetPrivacy

func (x *TerminateOrderParam) GetPrivacy() *ContractPrivacyParam

func (*TerminateOrderParam) GetSeller

func (x *TerminateOrderParam) GetSeller() *User

func (*TerminateOrderParam) GetTerminateConnectionParam

func (x *TerminateOrderParam) GetTerminateConnectionParam() []*TerminateConnectionParam

func (*TerminateOrderParam) ProtoMessage

func (*TerminateOrderParam) ProtoMessage()

func (*TerminateOrderParam) ProtoReflect

func (x *TerminateOrderParam) ProtoReflect() protoreflect.Message

func (*TerminateOrderParam) Reset

func (x *TerminateOrderParam) Reset()

func (*TerminateOrderParam) String

func (x *TerminateOrderParam) String() string

type UnimplementedChainAPIServer

type UnimplementedChainAPIServer struct {
}

UnimplementedChainAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedChainAPIServer) Version

type UnimplementedOrchestraAPIServer

type UnimplementedOrchestraAPIServer struct {
}

UnimplementedOrchestraAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedOrchestraAPIServer) ExecCreate

func (*UnimplementedOrchestraAPIServer) ExecFind

func (*UnimplementedOrchestraAPIServer) ExecGet

type UnimplementedOrderAPIServer

type UnimplementedOrderAPIServer struct {
}

UnimplementedOrderAPIServer can be embedded to have forward compatible implementations.

func (*UnimplementedOrderAPIServer) ChangeOrder

func (*UnimplementedOrderAPIServer) CreateOrder

func (*UnimplementedOrderAPIServer) GetOrderInfo

func (*UnimplementedOrderAPIServer) TerminateOrder

type User

type User struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Name    string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAddress

func (x *User) GetAddress() string

func (*User) GetName

func (x *User) GetName() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type VersionRequest

type VersionRequest struct {
	// contains filtered or unexported fields
}

func (*VersionRequest) Descriptor deprecated

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

Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.

func (*VersionRequest) ProtoMessage

func (*VersionRequest) ProtoMessage()

func (*VersionRequest) ProtoReflect

func (x *VersionRequest) ProtoReflect() protoreflect.Message

func (*VersionRequest) Reset

func (x *VersionRequest) Reset()

func (*VersionRequest) String

func (x *VersionRequest) String() string

type VersionResponse

type VersionResponse struct {
	BuildTime string `protobuf:"bytes,1,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
	Version   string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	Hash      string `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetBuildTime

func (x *VersionResponse) GetBuildTime() string

func (*VersionResponse) GetHash

func (x *VersionResponse) GetHash() string

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

func (x *VersionResponse) ProtoReflect() protoreflect.Message

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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