mocks

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DEFAULT_MESSAGE = "Hello world"
View Source
const TESTING_TOKEN = "token"

Variables

This section is empty.

Functions

func ResolverWithMessage

func ResolverWithMessage(message string) func() Abstraction

func TokenResolver

func TokenResolver() string

Types

type Abstraction

type Abstraction interface {
	Greet()
}

func Resolver

func Resolver() Abstraction

type FillableStruct

type FillableStruct struct {
	Message       string      `wire:",ignore"` // This also should be ignored by the container
	TokenResolved string      `wire:"token"`   // This should be resolved by token
	TypeResolved  Abstraction // This should be resolved by their type
	// contains filtered or unexported fields
}

func (FillableStruct) CheckResolvedFields

func (s FillableStruct) CheckResolvedFields() error

type Implementation

type Implementation struct {
	Message string
}

func (*Implementation) Greet

func (i *Implementation) Greet()

type InvalidStruct

type InvalidStruct struct {
	TokenResolved string      `wire:"token"` // This should be resolved by token
	TypeResolved  Abstraction // This should be resolved by their type
	Reader        io.Reader
}

Jump to

Keyboard shortcuts

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