Documentation
¶
Index ¶
Constants ¶
const DefaultCacheTTL = time.Minute
DefaultCacheTTL is how long a fetched archive answers value pickers before the server asks Layer whether the sessions namespace has been written since.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FactoryConfig ¶
func ResolveFactoryPaths ¶
func ResolveFactoryPaths(dir string) FactoryConfig
ResolveFactoryPaths provides predictable paths without introducing identity or provisioning dependencies. Every input is an ordinary operator-written file.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Warm ¶
Warm fills the picker archive in the background, so the first filter a visitor opens counts from memory.
func (*Server) WithCacheTTL ¶
WithCacheTTL sets how long the archive answers value pickers before it is revalidated against Layer. Zero or less sends every picker to the store.
func (*Server) WithFactory ¶
func (s *Server) WithFactory(c FactoryConfig) *Server
func (*Server) WithReviewEnabled ¶ added in v0.5.0
WithReviewEnabled exposes the navigation link for configured hosted wrappers.