Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IdentifierFormat ¶
IdentifierFormat return base format for identifier
func IdentifierUnformat ¶
IdentifierUnformat return parts of the given identifier
func OperatorID ¶ added in v0.2.0
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
Click to show internal directories.
Click to hide internal directories.