mock

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryContext

func QueryContext(ctx context.Context, opts ...ContextOption) context.Context

Types

type APIv1Option

type APIv1Option func(*apiv1)

func WhenReady

func WhenReady(val chan<- struct{}) APIv1Option

type ContextOption

type ContextOption func(*result)

func WithCategories

func WithCategories(val ...msg.Category) ContextOption

func WithCompleteAfter

func WithCompleteAfter(val time.Duration) ContextOption

func WithError

func WithError(c codes.Code, str string) ContextOption

func WithFetchCode

func WithFetchCode(val int32) ContextOption

func WithLanguage added in v1.12.2

func WithLanguage(val string) ContextOption

func WithLocation

func WithLocation(val string) ContextOption

func WithMalicious

func WithMalicious(val ...msg.Category) ContextOption

type Server

type Server interface {
	ServeTLS(ctx context.Context, l net.Listener) error
	ListenAndServeTLS(ctx context.Context, addr string) error
}

func APIv1

func APIv1(opts ...APIv1Option) Server

Jump to

Keyboard shortcuts

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