xpc

package
v0.0.0-...-d63360d Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 7 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CONNECTION_INVALID     = errors.New("connection invalid")
	CONNECTION_INTERRUPTED = errors.New("connection interrupted")
	CONNECTION_TERMINATED  = errors.New("connection terminated")

	TYPE_OF_UUID  = r.TypeOf(UUID{})
	TYPE_OF_BYTES = r.TypeOf([]byte{})
)

Functions

func Uname

func Uname(utsname *Utsname) error

Types

type Array

type Array []interface{}

an Array of things

func (Array) GetUUID

func (a Array) GetUUID(k int) UUID

type Dict

type Dict map[string]interface{}

a dictionary of things

func (Dict) Contains

func (d Dict) Contains(k string) bool

func (Dict) GetBytes

func (d Dict) GetBytes(k string, defv []byte) []byte

func (Dict) GetInt

func (d Dict) GetInt(k string, defv int) int

func (Dict) GetString

func (d Dict) GetString(k, defv string) string

func (Dict) GetUUID

func (d Dict) GetUUID(k string) UUID

func (Dict) MustGetArray

func (d Dict) MustGetArray(k string) Array

func (Dict) MustGetBytes

func (d Dict) MustGetBytes(k string) []byte

func (Dict) MustGetDict

func (d Dict) MustGetDict(k string) Dict

func (Dict) MustGetHexBytes

func (d Dict) MustGetHexBytes(k string) string

func (Dict) MustGetInt

func (d Dict) MustGetInt(k string) int

func (Dict) MustGetUUID

func (d Dict) MustGetUUID(k string) UUID

type UUID

type UUID [16]byte

a UUID

func GetUUID

func GetUUID(v interface{}) UUID

func MakeUUID

func MakeUUID(s string) UUID

func MustUUID

func MustUUID(s string) UUID

func (UUID) String

func (uuid UUID) String() string

type Utsname

type Utsname struct {
	Sysname  string
	Nodename string
	Release  string
	Version  string
	Machine  string
}

type XPC

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

func XpcConnect

func XpcConnect(service string, eh XpcEventHandler) XPC

func (*XPC) Send

func (x *XPC) Send(msg interface{}, verbose bool)

type XpcEventHandler

type XpcEventHandler interface {
	HandleXpcEvent(event Dict, err error)
}

Jump to

Keyboard shortcuts

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