location

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	Layout(post domain.PostDatum, cacheable bool) domain.FieldGroups
}

Finder defines the method for obtaining field layouts.

type Location

type Location struct {
	// Groups defines the current field groups that
	// are saved to disk in storage.
	Groups domain.FieldGroups
	// jsonPath defines where JSON files containing
	// domain.FieldGroups are kept
	JSONPath string
}

Location defines

func NewLocation

func NewLocation(path string) *Location

NewLocation - Construct

func (*Location) Layout

func (l *Location) Layout(post domain.PostDatum, cacheable bool) domain.FieldGroups

GetLayout

Obtains layouts specific for the arguments passed. If caching allows and the domain.FieldGroups have been cached, it will return the cached version

Jump to

Keyboard shortcuts

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