thrifttestclient

package
v1.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	TestBinary(
		ctx context.Context,
		Thing []byte,
		opts ...yarpc.CallOption,
	) ([]byte, error)

	TestByte(
		ctx context.Context,
		Thing *int8,
		opts ...yarpc.CallOption,
	) (int8, error)

	TestDouble(
		ctx context.Context,
		Thing *float64,
		opts ...yarpc.CallOption,
	) (float64, error)

	TestEnum(
		ctx context.Context,
		Thing *gauntlet.Numberz,
		opts ...yarpc.CallOption,
	) (gauntlet.Numberz, error)

	TestException(
		ctx context.Context,
		Arg *string,
		opts ...yarpc.CallOption,
	) error

	TestI32(
		ctx context.Context,
		Thing *int32,
		opts ...yarpc.CallOption,
	) (int32, error)

	TestI64(
		ctx context.Context,
		Thing *int64,
		opts ...yarpc.CallOption,
	) (int64, error)

	TestInsanity(
		ctx context.Context,
		Argument *gauntlet.Insanity,
		opts ...yarpc.CallOption,
	) (map[gauntlet.UserId]map[gauntlet.Numberz]*gauntlet.Insanity, error)

	TestList(
		ctx context.Context,
		Thing []int32,
		opts ...yarpc.CallOption,
	) ([]int32, error)

	TestMap(
		ctx context.Context,
		Thing map[int32]int32,
		opts ...yarpc.CallOption,
	) (map[int32]int32, error)

	TestMapMap(
		ctx context.Context,
		Hello *int32,
		opts ...yarpc.CallOption,
	) (map[int32]map[int32]int32, error)

	TestMulti(
		ctx context.Context,
		Arg0 *int8,
		Arg1 *int32,
		Arg2 *int64,
		Arg3 map[int16]string,
		Arg4 *gauntlet.Numberz,
		Arg5 *gauntlet.UserId,
		opts ...yarpc.CallOption,
	) (*gauntlet.Xtruct, error)

	TestMultiException(
		ctx context.Context,
		Arg0 *string,
		Arg1 *string,
		opts ...yarpc.CallOption,
	) (*gauntlet.Xtruct, error)

	TestNest(
		ctx context.Context,
		Thing *gauntlet.Xtruct2,
		opts ...yarpc.CallOption,
	) (*gauntlet.Xtruct2, error)

	TestOneway(
		ctx context.Context,
		SecondsToSleep *int32,
		opts ...yarpc.CallOption,
	) (yarpc.Ack, error)

	TestSet(
		ctx context.Context,
		Thing map[int32]struct{},
		opts ...yarpc.CallOption,
	) (map[int32]struct{}, error)

	TestString(
		ctx context.Context,
		Thing *string,
		opts ...yarpc.CallOption,
	) (string, error)

	TestStringMap(
		ctx context.Context,
		Thing map[string]string,
		opts ...yarpc.CallOption,
	) (map[string]string, error)

	TestStruct(
		ctx context.Context,
		Thing *gauntlet.Xtruct,
		opts ...yarpc.CallOption,
	) (*gauntlet.Xtruct, error)

	TestTypedef(
		ctx context.Context,
		Thing *gauntlet.UserId,
		opts ...yarpc.CallOption,
	) (gauntlet.UserId, error)

	TestVoid(
		ctx context.Context,
		opts ...yarpc.CallOption,
	) error
}

Interface is a client for the ThriftTest service.

func New

New builds a new client for the ThriftTest service.

client := thrifttestclient.New(dispatcher.ClientConfig("thrifttest"))

Jump to

Keyboard shortcuts

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