Documentation ¶
Overview ¶
Package temporalv3 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterTemporalHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterTemporalHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TemporalClient) error
- func RegisterTemporalHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterTemporalServer(s *grpc.Server, srv TemporalServer)
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetMessage() string
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type TemporalClient
- type TemporalServer
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) GetMessage ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
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