test

package
v1.64.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: Unlicense Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidToken = errors.New("invalid token")

ErrInvalidToken ...

Functions

func GenerateRandomPort added in v1.26.0

func GenerateRandomPort() string

GenerateRandomPort for test.

func NewCompressor added in v1.57.3

func NewCompressor(err error) compressor.Compressor

NewCompressor for test.

func NewDatadogConfig added in v1.59.0

func NewDatadogConfig() *opentracing.Config

NewDatadogConfig for test.

func NewGRPCConfig added in v1.30.0

func NewGRPCConfig() *grpc.Config

NewGRPCConfig for test.

func NewHTTPClient added in v1.30.0

func NewHTTPClient(logger *zap.Logger, tracer opentracing.Tracer) *http.Client

NewHTTPClient for test.

func NewHTTPClientWithRoundTripper added in v1.30.0

func NewHTTPClientWithRoundTripper(logger *zap.Logger, tracer opentracing.Tracer, roundTripper http.RoundTripper) *http.Client

NewHTTPClientWithRoundTripper for test.

func NewHTTPConfig added in v1.30.0

func NewHTTPConfig() *http.Config

NewHTTPConfig for test.

func NewJaegerConfig added in v1.52.0

func NewJaegerConfig() *opentracing.Config

NewJaegerConfig for test.

func NewMarshaller added in v1.57.3

func NewMarshaller(err error) marshaller.Marshaller

NewMarshaller for test.

func NewNSQConfig added in v1.31.0

func NewNSQConfig() *nsq.Config

NewNSQConfig for test.

Types

type Generator added in v1.32.3

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

Generator for test.

func NewGenerator added in v1.4.0

func NewGenerator(token string, err error) *Generator

NewGenerator for test.

func (*Generator) Generate added in v1.32.3

func (g *Generator) Generate(ctx context.Context) ([]byte, error)

type Handler added in v1.14.0

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

Handler for test.

func NewHandler added in v1.14.0

func NewHandler(err error) *Handler

NewHandler for test.

func (*Handler) Handle added in v1.14.0

func (h *Handler) Handle(ctx context.Context, m *message.Message) error

func (*Handler) Message added in v1.14.0

func (h *Handler) Message() *message.Message

type Server

type Server struct {
	v1.UnimplementedGreeterServiceServer
	// contains filtered or unexported fields
}

Server ...

func NewServer

func NewServer(verifyAuth bool) *Server

NewServer ...

func (*Server) SayHello

func (s *Server) SayHello(ctx context.Context, req *v1.SayHelloRequest) (*v1.SayHelloResponse, error)

SayHello ...

func (*Server) SayStreamHello

func (s *Server) SayStreamHello(stream v1.GreeterService_SayStreamHelloServer) error

SayStreamHello ...

type Shutdowner

type Shutdowner struct{}

func NewShutdowner

func NewShutdowner() *Shutdowner

func (*Shutdowner) Shutdown

func (*Shutdowner) Shutdown(...fx.ShutdownOption) error

type Verifier added in v1.32.3

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

Verifier for test.

func NewVerifier added in v1.4.0

func NewVerifier(token string) *Verifier

NewVerifier for test.

func (*Verifier) Verify added in v1.32.3

func (v *Verifier) Verify(ctx context.Context, token []byte) (*jwt.Token, error)

nolint:goerr113

Directories

Path Synopsis
greet
v1
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.

Jump to

Keyboard shortcuts

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