wiring

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilderService

func NewBuilderService(cfg interface{}) service.Service

func WrapTestedService

func WrapTestedService(t *testing.T) service.Wrapper

Types

type BuilderService

type BuilderService struct {
	gkBoot.BasicService
}

func (BuilderService) Execute

func (b BuilderService) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

type ConfigService

type ConfigService struct {
	gkBoot.BasicService
}

func (ConfigService) Execute

func (s ConfigService) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

type ConfigSettings

type ConfigSettings struct {
	TestValue1 int    `json:"testValue1"`
	TestValue2 string `json:"testValue2"`
}

type DisabledLogRequest

type DisabledLogRequest struct{}

func (DisabledLogRequest) Info

type DisabledResponse

type DisabledResponse struct {
	Testvalue int `json:"testvalue"`
}

type DisabledService

type DisabledService struct {
	gkBoot.BasicService
	logging.LogSkip
}

func (DisabledService) Execute

func (s DisabledService) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

func (DisabledService) WrapTarget

func (s DisabledService) WrapTarget()

type LogWrappedTarget

type LogWrappedTarget interface {
	WrapTarget()
}

type TestPassService

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

func (TestPassService) Execute

func (t TestPassService) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

func (TestPassService) GetNext

func (t TestPassService) GetNext() service.Service

func (*TestPassService) UpdateNext

func (t *TestPassService) UpdateNext(nxt service.Service)

type TestRequest1

type TestRequest1 struct {
	TestNum int `request:"header" alias:"Test-Num" json:"testNum"`
}

func (TestRequest1) Info

type TestResponse

type TestResponse struct {
	TestNumIs         int    `json:"testNum"`
	OptionalResponse1 int    `json:"optional1"`
	OptionalResponse2 string `json:"optional2"`
}

type TestService1

type TestService1 struct {
	gkBoot.BasicService
}

func (TestService1) Execute

func (s TestService1) Execute(ctx context.Context, request interface{}) (response interface{}, err error)

Jump to

Keyboard shortcuts

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