corgeclient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCorgeEchoStringHandler

func NewCorgeEchoStringHandler(f CorgeEchoStringFunc) zanzibar.TChannelHandler

NewCorgeEchoStringHandler wraps a handler function so it can be registered with a thrift server.

Types

type Client

type Client interface {
	EchoString(
		ctx context.Context,
		reqHeaders map[string]string,
		args *clientsCorgeCorge.Corge_EchoString_Args,
	) (string, map[string]string, error)
}

Client defines corge client interface.

func NewClient

func NewClient(deps *module.Dependencies) Client

NewClient returns a new TChannel client for service corge.

type CorgeEchoStringFunc

type CorgeEchoStringFunc func(
	ctx context.Context,
	reqHeaders map[string]string,
	args *clientsCorgeCorge.Corge_EchoString_Args,
) (string, map[string]string, error)

CorgeEchoStringFunc is the handler function for "echoString" method of thrift service "Corge".

type CorgeEchoStringHandler

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

CorgeEchoStringHandler handles the "echoString" method call of thrift service "Corge".

func (*CorgeEchoStringHandler) Handle

func (h *CorgeEchoStringHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (bool, zanzibar.RWTStruct, map[string]string, error)

Handle parses request from wire value and calls corresponding handler function.

Directories

Path Synopsis
Package clientmock is a generated GoMock package.
Package clientmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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