inject

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Injectable

type Injectable struct {
	Name   string
	Run    func(universe string) (url string)
	Method Method
	Params interface{}
	Config interface{}
}

func Fixture

func Fixture(name string, params interface{}) Injectable

func Service

func Service(name string, config *commonIface.ServiceConfig) Injectable

func Simple

func Simple(name string, config *dream.SimpleConfig) Injectable

type Method

type Method int
const (
	GET Method = iota
	POST
	DELETE
)

func (Method) String

func (m Method) String() string

Jump to

Keyboard shortcuts

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