radix_tree_address_space

package
v0.2.2-alpha05 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressSpace

type AddressSpace interface {
	GetServer() *openapi3.Server
	GetServerVars() map[string]string
	GetRequestBodyParams() map[string]anysdk.Addressable
	GetSimpleSelectKey() string
	GetSimpleSelectSchema() anysdk.Schema
	GetUnionSelectSchemas() map[string]anysdk.Schema
	GetGlobalSelectSchemas() map[string]anysdk.Schema
	DereferenceAddress(address string) (any, bool)
	WriteToAddress(address string, val any) error
	ReadFromAddress(address string) (any, bool)
	Analyze() error
	GetRequest() (*http.Request, bool)
	ResolveSignature(params map[string]any) bool
	Expand(...any) error
	Invoke(...any) error
	ToMap() (map[string]any, error)
}

type AddressSpaceAnalyzer

type AddressSpaceAnalyzer interface {
	Analyze() error
	GetAddressSpace() AddressSpace
}

func NewAddressSpaceAnalyzer

func NewAddressSpaceAnalyzer(
	grammar AddressSpaceGrammar,
	provider anysdk.Provider,
	service anysdk.Service,
	resource anysdk.Resource,
	method anysdk.StandardOperationStore,
	aliasedUnionSelectKeys map[string]string,
) AddressSpaceAnalyzer

type AddressSpaceGrammar

type AddressSpaceGrammar interface {
	ExtractSubPath(string, pathType) (string, bool)
}

AddressSpaceGrammar defines the search DSL

func NewAddressSpaceGrammar

func NewAddressSpaceGrammar() AddressSpaceGrammar
func (asg *standardAddressSpaceGrammar) Dereference(address string) (any, bool) {
	return nil, false
}

type AliasMap

type AliasMap interface {
	Put(string, string)
	Peek(string) (string, bool)
	Pop(string) (string, bool)
	Copy() AliasMap
	GetAliasToPrefixMap() map[string]string
}

func NewAliasMap

func NewAliasMap(aliasToPrefixMap map[string]string) AliasMap

type AnalyzedInput

type AnalyzedInput interface {
	GetQueryParams() map[string]any
	GetHeaderParam(string) (string, bool)
	GetPathParam(string) (string, bool)
	GetServerVars() map[string]any
	GetRequestBody() any
}

type PartiallyAssignedInput

type PartiallyAssignedInput interface {
	GetQueryParams() map[string]any
	GetHeaderParam(string) (string, bool)
	GetPathParam(string) (string, bool)
	GetServerVars() map[string]any
	GetRequestBody() any
	GetUnassignedParams() map[string]any
	GetUnassignedParam(string) (any, bool)
}

type RadixTree

type RadixTree interface {
	Insert(path string, address any) error
	Find(path string) (any, bool)
	Delete(path string) error
	ToFlatMap(prefix string) map[string]any
	Copy() RadixTree
}

func NewRadixTree

func NewRadixTree() RadixTree

Jump to

Keyboard shortcuts

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