plumb

package
v0.0.0-...-7c63792 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package plumb provides bits and bobs useful in implementing gates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInt

func AsInt(v interface{}) int

AsInt accepts a value of one of the types [int, float64, complex128, string], and converts it to a value of type int.

func AsString

func AsString(v interface{}) string

AsString accepts a value of one of the types [[]byte, string, byteBuffer, ioReader], and converts it to a value of type string.

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) Cognize

func (c *Client) Cognize(v interface{})

func (*Client) Fetch

func (c *Client) Fetch(req interface{}) interface{}

func (*Client) Init

func (c *Client) Init(recognize func(interface{}))

type Given

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

func (*Given) Fix

func (a *Given) Fix(v interface{})

func (*Given) Flush

func (a *Given) Flush()

func (*Given) Init

func (a *Given) Init()

func (*Given) Use

func (a *Given) Use() interface{}

Jump to

Keyboard shortcuts

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