pgutil

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryKindMapper

type InMemoryKindMapper struct {
	KindToID map[graph.Kind]int16
	IDToKind map[int16]graph.Kind
}

func NewInMemoryKindMapper

func NewInMemoryKindMapper() *InMemoryKindMapper

func (*InMemoryKindMapper) AssertKinds

func (s *InMemoryKindMapper) AssertKinds(ctx context.Context, kinds graph.Kinds) ([]int16, error)

func (*InMemoryKindMapper) MapKind

func (s *InMemoryKindMapper) MapKind(ctx context.Context, kind graph.Kind) (int16, error)

func (*InMemoryKindMapper) MapKindID

func (s *InMemoryKindMapper) MapKindID(ctx context.Context, kindID int16) (graph.Kind, error)

func (*InMemoryKindMapper) MapKindIDs

func (s *InMemoryKindMapper) MapKindIDs(ctx context.Context, kindIDs []int16) (graph.Kinds, error)

func (*InMemoryKindMapper) MapKinds

func (s *InMemoryKindMapper) MapKinds(ctx context.Context, kinds graph.Kinds) ([]int16, error)

func (*InMemoryKindMapper) Put

func (s *InMemoryKindMapper) Put(kind graph.Kind) int16

Jump to

Keyboard shortcuts

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