service

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearDB

func ClearDB(ctx context.Context, t require.TestingT)

func SetUp

func SetUp(ctx context.Context, t require.TestingT, opts ...SetUpOption) (tearDown func())

func SetUpServices

func SetUpServices(ctx context.Context, t require.TestingT, servicesConfig SetUpServicesConfig, opts ...SetUpOption) func()

Types

type Config

type Config struct {
	COAPGW coapgw.Config
	RD     rdService.Config
	GRPCGW grpcgwConfig.Config
	RA     raService.Config
	IS     isService.Config
	CA     ca.Config
	OAUTH  oauthService.Config
}

type SetUpOption

type SetUpOption = func(cfg *Config)

func WithCAConfig added in v2.7.18

func WithCAConfig(ca ca.Config) SetUpOption

func WithCOAPGWConfig

func WithCOAPGWConfig(coapgwCfg coapgw.Config) SetUpOption

func WithGRPCGWConfig

func WithGRPCGWConfig(grpcCfg grpcgwConfig.Config) SetUpOption

func WithISConfig added in v2.4.0

func WithISConfig(is isService.Config) SetUpOption

func WithOAuthConfig added in v2.8.1

func WithOAuthConfig(oauth oauthService.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
	SetUpServicesResourceAggregate
	SetUpServicesResourceDirectory
	SetUpServicesCertificateAuthority
	SetUpServicesCloud2CloudGateway
	SetUpServicesCoapGateway
	SetUpServicesGrpcGateway
	// need to be last
	SetUpServicesMax
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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