service

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDB

func ClearDB(ctx context.Context, t *testing.T)

func SetUp

func SetUp(ctx context.Context, t *testing.T, opts ...SetUpOption) (TearDown func())

func SetUpServices

func SetUpServices(ctx context.Context, t *testing.T, servicesConfig SetUpServicesConfig) func()

Types

type Config

type Config struct {
	COAPGW coapgw.Config
	RD     rdService.Config
	GRPCGW grpcgwConfig.Config
	RA     raService.Config
}

type SetUpOption

type SetUpOption = func(cfg *Config)

func WithCOAPGWConfig

func WithCOAPGWConfig(coapgwCfg coapgw.Config) SetUpOption

func WithGRPCGWConfig

func WithGRPCGWConfig(grpcCfg grpcgwConfig.Config) SetUpOption

func WithRAConfig

func WithRAConfig(ra raService.Config) SetUpOption

func WithRDConfig

func WithRDConfig(rd rdService.Config) SetUpOption

type SetUpServicesConfig

type SetUpServicesConfig uint16
const (
	SetUpServicesOAuth SetUpServicesConfig = 1 << iota
	SetUpServicesId
	SetUpServicesCertificateAuthority
	SetUpServicesCloud2CloudGateway
	SetUpServicesCoapGateway
	SetUpServicesGrpcGateway
	SetUpServicesResourceAggregate
	SetUpServicesResourceDirectory
)

Jump to

Keyboard shortcuts

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