indyUtils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndyError

func GetIndyError(err int) string

GetIndyError returns the string error of an indy_error_t

func NewFutureCommand

func NewFutureCommand() (C.indy_handle_t, chan IndyResult)

NewFutureCommand creates a new future command

func RemoveFuture

func RemoveFuture(commandHandle int, result IndyResult) chan IndyResult

RemoveFuture removes a future from the futures map

Types

type Counter

type Counter struct {
	sync.Mutex
	Count int32
}

Counter Concurrent counter

func (*Counter) Get

func (c *Counter) Get() (int32, string)

func (*Counter) Increment

func (c *Counter) Increment()

type IndyResult

type IndyResult struct {
	Error   error
	Results []interface{}
}

IndyResult represents callback result from C-call to libindy

Jump to

Keyboard shortcuts

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