schema

package
v0.0.0-...-caa851c Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlatSchema

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

func (*FlatSchema) HasZone

func (flat *FlatSchema) HasZone(zone string) (bool, error)

func (*FlatSchema) Resolve

func (flat *FlatSchema) Resolve(query *store.Query) (entries []*store.Entry, err error)

func (*FlatSchema) Store

func (flat *FlatSchema) Store() store.Store

type Schema

type Schema interface {
	HasZone(string) (bool, error)
	Resolve(*store.Query) ([]*store.Entry, error)
	Store() store.Store
}

func NewFlatSchema

func NewFlatSchema(store store.Store, defaultTTL uint32) Schema

func NewSchema

func NewSchema(name string, store store.Store, defaultTTL uint32) (schema Schema, err error)

Jump to

Keyboard shortcuts

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