eval

package
v0.0.221 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocState

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

func NewAllocState

func NewAllocState() *AllocState

func (*AllocState) Alloc

func (r *AllocState) Alloc(ctx context.Context, server *schema.Server, allocator []AllocatorFunc, n *schema.Node, k int) (pkggraph.ValueWithPath, error)

type AllocatorFunc

type AllocatorFunc func(context.Context, *schema.Node, *schema.Need) (interface{}, error)

func MakePortAllocator

func MakePortAllocator(server *schema.Server, portRange PortRange, allocs *PortAllocations) AllocatorFunc

type PortAllocations

type PortAllocations struct {
	Ports []*schema.Endpoint_Port
}

type PortRange

type PortRange struct {
	Base, Max int32
}

func DefaultPortRange

func DefaultPortRange() PortRange

Jump to

Keyboard shortcuts

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