format

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IdentifierFormat

func IdentifierFormat(pubKey []byte, roleType string) string

IdentifierFormat return base format for identifier

func IdentifierUnformat

func IdentifierUnformat(identifier string) (string, string)

IdentifierUnformat return parts of the given identifier

func OperatorID added in v0.2.0

func OperatorID(operatorPubKey []byte) string

OperatorID returns sha256 of the given operator public key

Types

type DomainType added in v0.4.7

type DomainType spectypes.DomainType

func DomainTypeFromString added in v0.4.7

func DomainTypeFromString(s string) (DomainType, error)

func (DomainType) String added in v0.4.7

func (d DomainType) String() string

type RegexpPool added in v0.2.0

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

RegexpPool holds a sync.Pool of *regexp.Regexp for a specific pattern

func NewRegexpPool added in v0.2.0

func NewRegexpPool(pattern string) *RegexpPool

NewRegexpPool creates a new instance of RegexpPool

func (*RegexpPool) Get added in v0.2.0

func (r *RegexpPool) Get() (*regexp.Regexp, func())

Get returns an instance of the regexp and a callback function that adds it back to the pool

Jump to

Keyboard shortcuts

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