output

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateParamsCircularDeps

func ValidateParamsCircularDeps(o Output) error

func ValidateParamsExist

func ValidateParamsExist(o Output) error

func ValidateServicesCircularDeps

func ValidateServicesCircularDeps(o Output) error

func ValidateServicesExist

func ValidateServicesExist(o Output) error

Types

type Arg

type Arg struct {
	Code              string
	Raw               any
	DependsOnParams   []string
	DependsOnServices []string
	DependsOnTags     []string
}

type Call

type Call struct {
	Method    string
	Args      []Arg
	Immutable bool
}

type Decorator

type Decorator struct {
	Tag       string
	Decorator string
	Args      []Arg
}

type Field

type Field struct {
	Name  string
	Value Arg
}

type Meta

type Meta struct {
	Pkg                  string
	ContainerType        string
	ContainerConstructor string
}

type Output

type Output struct {
	Meta       Meta
	Params     []Param
	Services   []Service
	Decorators []Decorator
}

type Param

type Param struct {
	Name      string
	Code      string
	Raw       any
	DependsOn []string
}

type Service

type Service struct {
	Name        string
	Getter      string
	MustGetter  bool
	Type        string
	Value       string
	Constructor string
	Args        []Arg
	Calls       []Call
	Fields      []Field
	Tags        []Tag
	Scope       container.Scope // todo??
	Todo        bool
}

type Tag

type Tag struct {
	Name     string
	Priority int
}

Jump to

Keyboard shortcuts

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