context

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AreaNone ...
	AreaNone = 1

	// AreaIPFilter ...
	AreaIPFilter = 2

	// AreaDomain ...
	AreaDomain = 4

	// AreaSubDomain ...
	AreaSubDomain = 8

	// AreaRedirect ...
	AreaRedirect = 16

	// AreaCache ...
	AreaCache = 32

	// AreaSettings ...
	AreaSettings = 64

	// AreaUser ...
	AreaUser = 128

	// AreaStatistics ...
	AreaStatistics = 256

	// AreaErrorPage ...
	AreaErrorPage = 512

	// AreaSsl ...
	AreaSsl = 1024

	// AreaAll ...
	AreaAll = 0xFFFFFFFFFFFFFFFF
)
View Source
const (
	// ContextUp ...
	ContextUp = ".."

	// ContextSelf ...
	ContextSelf = "."

	// ContextIPFilter ...
	ContextIPFilter = "ipFilter"

	// ContextCacheSettings ...
	ContextCacheSettings = "cacheSettings"

	// ContextRedirect ...
	ContextRedirect = "redirects"

	// ContextSettings ...
	ContextSettings = "settings"

	// ContextStatistics ...
	ContextStatistics = "statistics"

	// ContextErrorPages ...
	ContextErrorPages = "errorPages"

	// ContextSsl ...
	ContextSsl = "sslCert"
)
View Source
const (
	// EventContextSwitch ...
	EventContextSwitch = "contextSwitch"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Context
	event.Subscriber

	SwitchUp() (Context, error)
	SwitchDown(id uint64, name string, selection uint) (Context, error)
	FindSelection(selection ...uint) Context
	GetAPIConnector() api.API
	Reset()
	Clone() Container
}

Container ...

func NewMyraContainer

func NewMyraContainer(connector api.API) Container

NewMyraContainer ...

type Context

type Context interface {
	fmt.Stringer
	storage.Storage

	GetID() uint64
	GetName() string
	GetSelection() uint
	GetParent() Context
	BuildPrompt(colorize bool) string
	Identifier() string
}

Context ...

Jump to

Keyboard shortcuts

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