attr

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 1 Imported by: 7

Documentation

Index

Constants

View Source
const (
	// on a peer, local and peer supplied data
	LocalScope = "local"
	PeerScope  = "peer"

	// on a local profile, public data and private settings
	PublicScope   = "public"
	SettingsScope = "settings"
)

scopes for attributes

View Source
const Separator = "."

Separator for scope and the rest of path

Variables

This section is empty.

Functions

func GetLocalScope

func GetLocalScope(path string) string

GetLocalScope takes a path and attaches the local scope to it

func GetPeerScope

func GetPeerScope(path string) string

GetPeerScope takes a path and attaches the peer scope to it

func GetPublicScope

func GetPublicScope(path string) string

GetPublicScope takes a path and attaches the pubic scope to it

func GetScopePath

func GetScopePath(fullPath string) (string, string)

GetScopePath take a full path and returns the scope and the scope-less path

func GetSettingsScope

func GetSettingsScope(path string) string

GetSettingsScope takes a path and attaches the settings scope to it

Types

This section is empty.

Jump to

Keyboard shortcuts

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