Documentation ¶
Index ¶
- func DecodeAndUnzip(encoded string) ([]byte, error)
- func GetAliasRef(contribType, alias string) (string, bool)
- func GetNonContributionAlias(alias string) string
- func GetRef(contrib interface{}) string
- func HandlePanic(name string, err *error)
- func RegisterAlias(contribType, alias, ref string) error
- func SaveNonContributionAlias(alias, ref string)
- func URLStringToFilePath(fileURL string) (string, bool)
- func Unzip(compressed []byte) ([]byte, error)
- type FixedDetails
- type Generator
- type HasRef
- type Iterator
- type NeedsCleanup
- type SyncQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeAndUnzip ¶
func GetAliasRef ¶
func GetNonContributionAlias ¶ added in v1.2.2
func HandlePanic ¶
HandlePanic helper method to handle panics todo should we remove this
func RegisterAlias ¶
func SaveNonContributionAlias ¶ added in v1.2.2
func SaveNonContributionAlias(alias, ref string)
func URLStringToFilePath ¶
URLStringToFilePath convert fileURL to file path
Types ¶
type FixedDetails ¶
type FixedDetails struct {
// contains filtered or unexported fields
}
func (*FixedDetails) Get ¶
func (d *FixedDetails) Get(key string) string
func (*FixedDetails) Iterate ¶
func (d *FixedDetails) Iterate(itx func(string, string))
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator represents a UUID generator that generates UUIDs in sequence from a random starting point.
func NewGenerator ¶
NewGenerator returns a new Generator. It can fail if the crypto/rand read fails.
func (*Generator) Next ¶
Next returns the next UUID from the generator. Only the first 8 bytes can differ from the previous UUID, so taking a slice of the first 16 bytes is sufficient to provide a somewhat less secure 128 bit UUID.
It is OK to call this method concurrently.
func (*Generator) NextAsString ¶
NextAsString returns the next UUID from the generator as a string.
type NeedsCleanup ¶
type NeedsCleanup interface {
Cleanup() error
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.