support

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAndUnzip

func DecodeAndUnzip(encoded string) ([]byte, error)

func GetAliasRef

func GetAliasRef(contribType, alias string) (string, bool)

func GetNonContributionAlias

func GetNonContributionAlias(alias string) string

func GetRef

func GetRef(contrib interface{}) string

func HandlePanic

func HandlePanic(name string, err *error)

HandlePanic helper method to handle panics todo should we remove this

func RegisterAlias

func RegisterAlias(contribType, alias, ref string) error

func SaveNonContributionAlias

func SaveNonContributionAlias(alias, ref string)

func URLStringToFilePath

func URLStringToFilePath(fileURL string) (string, bool)

URLStringToFilePath convert fileURL to file path

func Unzip

func Unzip(compressed []byte) ([]byte, error)

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

func NewGenerator() (*Generator, error)

NewGenerator returns a new Generator. It can fail if the crypto/rand read fails.

func (*Generator) Next

func (g *Generator) Next() [24]byte

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

func (g *Generator) NextAsString() string

NextAsString returns the next UUID from the generator as a string.

type HasRef

type HasRef interface {
	Ref() string
}

type Iterator

type Iterator interface {
	Next() interface{}
	HasNext() bool
}

type NeedsCleanup

type NeedsCleanup interface {
	Cleanup() error
}

type SyncQueue

type SyncQueue struct {
	List *list.List
	// contains filtered or unexported fields
}

SyncQueue is a List backed queue

func NewSyncQueue

func NewSyncQueue() *SyncQueue

NewSyncQueue creates a new SyncQueue

func (*SyncQueue) IsEmpty

func (sq *SyncQueue) IsEmpty() bool

IsEmpty indicates if the queue is empty

func (*SyncQueue) Pop

func (sq *SyncQueue) Pop() (interface{}, bool)

Pop pop item off of queue

func (*SyncQueue) Push

func (sq *SyncQueue) Push(item interface{})

Push push item on to queue

func (*SyncQueue) Size

func (sq *SyncQueue) Size() int

Size get the size of the queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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