thrifttestserver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(impl Interface) thrift.Service

Types

type Interface

type Interface interface {
	TestBinary(ctx context.Context, reqMeta yarpc.ReqMeta, thing []byte) ([]byte, yarpc.ResMeta, error)
	TestByte(ctx context.Context, reqMeta yarpc.ReqMeta, thing *int8) (int8, yarpc.ResMeta, error)
	TestDouble(ctx context.Context, reqMeta yarpc.ReqMeta, thing *float64) (float64, yarpc.ResMeta, error)
	TestEnum(ctx context.Context, reqMeta yarpc.ReqMeta, thing *gauntlet.Numberz) (gauntlet.Numberz, yarpc.ResMeta, error)
	TestException(ctx context.Context, reqMeta yarpc.ReqMeta, arg *string) (yarpc.ResMeta, error)
	TestI32(ctx context.Context, reqMeta yarpc.ReqMeta, thing *int32) (int32, yarpc.ResMeta, error)
	TestI64(ctx context.Context, reqMeta yarpc.ReqMeta, thing *int64) (int64, yarpc.ResMeta, error)
	TestInsanity(ctx context.Context, reqMeta yarpc.ReqMeta, argument *gauntlet.Insanity) (map[gauntlet.UserId]map[gauntlet.Numberz]*gauntlet.Insanity, yarpc.ResMeta, error)
	TestList(ctx context.Context, reqMeta yarpc.ReqMeta, thing []int32) ([]int32, yarpc.ResMeta, error)
	TestMap(ctx context.Context, reqMeta yarpc.ReqMeta, thing map[int32]int32) (map[int32]int32, yarpc.ResMeta, error)
	TestMapMap(ctx context.Context, reqMeta yarpc.ReqMeta, hello *int32) (map[int32]map[int32]int32, yarpc.ResMeta, error)
	TestMulti(ctx context.Context, reqMeta yarpc.ReqMeta, arg0 *int8, arg1 *int32, arg2 *int64, arg3 map[int16]string, arg4 *gauntlet.Numberz, arg5 *gauntlet.UserId) (*gauntlet.Xtruct, yarpc.ResMeta, error)
	TestMultiException(ctx context.Context, reqMeta yarpc.ReqMeta, arg0 *string, arg1 *string) (*gauntlet.Xtruct, yarpc.ResMeta, error)
	TestNest(ctx context.Context, reqMeta yarpc.ReqMeta, thing *gauntlet.Xtruct2) (*gauntlet.Xtruct2, yarpc.ResMeta, error)
	TestSet(ctx context.Context, reqMeta yarpc.ReqMeta, thing map[int32]struct{}) (map[int32]struct{}, yarpc.ResMeta, error)
	TestString(ctx context.Context, reqMeta yarpc.ReqMeta, thing *string) (string, yarpc.ResMeta, error)
	TestStringMap(ctx context.Context, reqMeta yarpc.ReqMeta, thing map[string]string) (map[string]string, yarpc.ResMeta, error)
	TestStruct(ctx context.Context, reqMeta yarpc.ReqMeta, thing *gauntlet.Xtruct) (*gauntlet.Xtruct, yarpc.ResMeta, error)
	TestTypedef(ctx context.Context, reqMeta yarpc.ReqMeta, thing *gauntlet.UserId) (gauntlet.UserId, yarpc.ResMeta, error)
	TestVoid(ctx context.Context, reqMeta yarpc.ReqMeta) (yarpc.ResMeta, error)
}

Jump to

Keyboard shortcuts

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