registry

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Mappers = NewMappersDict()
	Types   = NewTypeDict()
	Fields  = NewFieldDict()
)

Functions

This section is empty.

Types

type FieldDict

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

func NewFieldDict

func NewFieldDict() *FieldDict

func (*FieldDict) Get

func (d *FieldDict) Get(k ast.Field) types.Field

func (*FieldDict) Put

func (d *FieldDict) Put(k ast.Field, v types.Field)

func (*FieldDict) PutIfNotExist

func (d *FieldDict) PutIfNotExist(k ast.Field, v types.Field)

type MappersDict

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

func NewMappersDict

func NewMappersDict() *MappersDict

func (*MappersDict) Get

func (d *MappersDict) Get(pbTypeName string) types.FieldMapper

func (*MappersDict) Put

func (d *MappersDict) Put(pbTypeName string, mapper types.FieldMapper)

type TypeDict

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

func NewTypeDict

func NewTypeDict() *TypeDict

func (*TypeDict) GetByName

func (d *TypeDict) GetByName(name string) (types.Type, ast.Type)

func (*TypeDict) GetPbType

func (d *TypeDict) GetPbType(typ types.Type) ast.Type

func (*TypeDict) GetType

func (d *TypeDict) GetType(pbType ast.Type) types.Type

func (*TypeDict) Put

func (d *TypeDict) Put(pbType ast.Type, typ types.Type)

Jump to

Keyboard shortcuts

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