servertest

package
v0.0.0-...-913acc0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctx context.Context, d Deps) pb.AuthServiceClient

NewServer initializes and runs in the background a gRPC server allowing only for local calls for testing. Returns a client to interact with the server. The server is shutdown when provided context is cancelled. No interceptor is registered.

Types

type Deps

type Deps struct {
	VerifyClientCert bool
	Now              func() time.Time
	Storage          storage.Storage
	Vault            storage.Vault
	UserClient       userPb.UserServiceClient
	TokenManager     tokens.Manager
}

Struct for server mock dependencies.

Jump to

Keyboard shortcuts

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