transactionspb

package
v0.0.3-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package transactionspb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTransactionServiceHandler

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

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

func RegisterTransactionServiceHandlerClient

func RegisterTransactionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionServiceClient) error

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

func RegisterTransactionServiceHandlerFromEndpoint

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

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

func RegisterTransactionServiceServer

func RegisterTransactionServiceServer(s *grpc.Server, srv TransactionServiceServer)

Types

type TransactionServiceClient

type TransactionServiceClient interface {
	GetTransactionStatus(ctx context.Context, in *TransactionStatusRequest, opts ...grpc.CallOption) (*TransactionStatusResponse, error)
}

TransactionServiceClient is the client API for TransactionService service.

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

func NewTransactionServiceClient

func NewTransactionServiceClient(cc *grpc.ClientConn) TransactionServiceClient

type TransactionServiceServer

type TransactionServiceServer interface {
	GetTransactionStatus(context.Context, *TransactionStatusRequest) (*TransactionStatusResponse, error)
}

TransactionServiceServer is the server API for TransactionService service.

type TransactionStatusRequest

type TransactionStatusRequest struct {
	TransactionId        string   `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TransactionStatusRequest) Descriptor

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

func (*TransactionStatusRequest) GetTransactionId

func (m *TransactionStatusRequest) GetTransactionId() string

func (*TransactionStatusRequest) ProtoMessage

func (*TransactionStatusRequest) ProtoMessage()

func (*TransactionStatusRequest) Reset

func (m *TransactionStatusRequest) Reset()

func (*TransactionStatusRequest) String

func (m *TransactionStatusRequest) String() string

func (*TransactionStatusRequest) XXX_DiscardUnknown

func (m *TransactionStatusRequest) XXX_DiscardUnknown()

func (*TransactionStatusRequest) XXX_Marshal

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

func (*TransactionStatusRequest) XXX_Merge

func (dst *TransactionStatusRequest) XXX_Merge(src proto.Message)

func (*TransactionStatusRequest) XXX_Size

func (m *TransactionStatusRequest) XXX_Size() int

func (*TransactionStatusRequest) XXX_Unmarshal

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

type TransactionStatusResponse

type TransactionStatusResponse struct {
	TransactionId        string               `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	Status               string               `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	Message              string               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	LastUpdated          *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*TransactionStatusResponse) Descriptor

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

func (*TransactionStatusResponse) GetLastUpdated

func (m *TransactionStatusResponse) GetLastUpdated() *timestamp.Timestamp

func (*TransactionStatusResponse) GetMessage

func (m *TransactionStatusResponse) GetMessage() string

func (*TransactionStatusResponse) GetStatus

func (m *TransactionStatusResponse) GetStatus() string

func (*TransactionStatusResponse) GetTransactionId

func (m *TransactionStatusResponse) GetTransactionId() string

func (*TransactionStatusResponse) ProtoMessage

func (*TransactionStatusResponse) ProtoMessage()

func (*TransactionStatusResponse) Reset

func (m *TransactionStatusResponse) Reset()

func (*TransactionStatusResponse) String

func (m *TransactionStatusResponse) String() string

func (*TransactionStatusResponse) XXX_DiscardUnknown

func (m *TransactionStatusResponse) XXX_DiscardUnknown()

func (*TransactionStatusResponse) XXX_Marshal

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

func (*TransactionStatusResponse) XXX_Merge

func (dst *TransactionStatusResponse) XXX_Merge(src proto.Message)

func (*TransactionStatusResponse) XXX_Size

func (m *TransactionStatusResponse) XXX_Size() int

func (*TransactionStatusResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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