internal

package
v0.0.0-...-0574c50 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAJOR         = 1
	MINOR         = 0
	PATCH         = 0
	STATE         = ALPHA
	STATE_VERSION = 1
)
View Source
const (
	ALPHA             = "a"
	BETA              = "b"
	RELEASE_CANDIDATE = "rc"
	RELEASE           = ""
)

Variables

View Source
var (
	IsNotFunction = errors.New("is not function")
)

Functions

func GetGodiPacketName

func GetGodiPacketName(t reflect.Type) (string, bool)

func GetOutputFieldType

func GetOutputFieldType(f interface{}, idx int) (reflect.Type, error)

func InputOf

func InputOf(f interface{}) []reflect.Type

func IsError

func IsError(t reflect.Type) bool

func IsGodiConstructor

func IsGodiConstructor(constructor interface{}) bool

func IsPtrStructOrInterface

func IsPtrStructOrInterface(t reflect.Type) bool

func KeyInStrings

func KeyInStrings(key string, strings []string) bool

func OutputOf

func OutputOf(f interface{}) []reflect.Type

func SpinLock

func SpinLock() sync.Locker

SpinLock creates a new spin-lock.

func Version

func Version() (version string)

Types

type AsyncJobQueue

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

func NewAsyncJobQueue

func NewAsyncJobQueue() AsyncJobQueue

func (*AsyncJobQueue) Execute

func (q *AsyncJobQueue) Execute(group *sync.WaitGroup)

func (*AsyncJobQueue) Push

func (q *AsyncJobQueue) Push(job Job) (total int)

type Job

type Job func()

Jump to

Keyboard shortcuts

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