benchmark

package
v0.0.0-...-d22127c Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NilDecode = errors.New("cannot decode into a nil root struct")
)

Functions

This section is empty.

Types

type BenchmarkService

type BenchmarkService interface {
	Benchmark(context.Context, *Request) (*Response, error)
}

type Client

type Client struct {
	*frisbee.Client
	BenchmarkService *subBenchmarkServiceClient
}

func NewClient

func NewClient(tlsConfig *tls.Config, logger *zerolog.Logger) (*Client, error)

type Request

type Request struct {
	Message string
	// contains filtered or unexported fields
}

func NewRequest

func NewRequest() *Request

func (*Request) Decode

func (x *Request) Decode(b []byte) error

func (*Request) Encode

func (x *Request) Encode(b *polyglot.Buffer)

func (*Request) Error

func (x *Request) Error(b *polyglot.Buffer, err error)

type Response

type Response struct {
	Message string
	// contains filtered or unexported fields
}

func NewResponse

func NewResponse() *Response

func (*Response) Decode

func (x *Response) Decode(b []byte) error

func (*Response) Encode

func (x *Response) Encode(b *polyglot.Buffer)

func (*Response) Error

func (x *Response) Error(b *polyglot.Buffer, err error)

type Server

type Server struct {
	*frisbee.Server
}

func NewServer

func NewServer(benchmarkService BenchmarkService, tlsConfig *tls.Config, logger *zerolog.Logger) (*Server, error)

Jump to

Keyboard shortcuts

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