service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Start

func Start(m *testing.M, opt ...ServiceOptions) int

Starts up a GRPC microservice

Types

type Service

type Service interface {
	Start(opt ...ServiceOptions) int
	Runner() runner.Runner
}

Test service only contains a Start() method to stand up the service, and a test runner

func NewService

func NewService(m *testing.M) Service

Creates a new service and DB client

type ServiceImpl

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

Controller allows the service to control the test run

func (*ServiceImpl) Runner

func (s *ServiceImpl) Runner() runner.Runner

Creates a testdeck runner

func (*ServiceImpl) Start

func (s *ServiceImpl) Start(opt ...ServiceOptions) int

Start the testing service

type ServiceOptions

type ServiceOptions struct {
	RunOnceAndShutdown bool
}

Additional configurations to pass as params

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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