temporalv3

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 13 Imported by: 1

Documentation

Overview

Package temporalv3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTemporalHandler

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

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

func RegisterTemporalHandlerClient

func RegisterTemporalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TemporalClient) error

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

func RegisterTemporalHandlerFromEndpoint

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

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

func RegisterTemporalServer

func RegisterTemporalServer(s *grpc.Server, srv TemporalServer)

Types

type Message

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

func (*Message) Descriptor

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

func (*Message) GetMessage

func (m *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type TemporalClient

type TemporalClient interface {
	Status(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
}

TemporalClient is the client API for Temporal service.

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

func NewTemporalClient

func NewTemporalClient(cc *grpc.ClientConn) TemporalClient

type TemporalServer

type TemporalServer interface {
	Status(context.Context, *Message) (*Message, error)
}

TemporalServer is the server API for Temporal service.

Jump to

Keyboard shortcuts

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