Documentation ¶
Index ¶
- Variables
- func UpCheck(c *Client) error
- type Client
- func (c *Client) ReceivePayload(key []byte) ([]byte, error)
- func (c *Client) ReceivePayloadGrpc(data []byte) ([]byte, interface{})
- func (c *Client) SendPayload(pl []byte, b64From string, b64To []string) ([]byte, error)
- func (c *Client) SendPayloadGrpc(pl []byte, b64From string, b64To []string) ([]byte, error)
- func (c *Client) SendSignedTx(pl []byte, b64To []string) ([]byte, error)
- func (c *Client) SendSignedTxGrpc(pl []byte, b64To []string) ([]byte, error)
- func (c *Client) StorePayload(pl []byte) ([]byte, error)
- func (c *Client) StorePayloadGrpc(pl []byte) ([]byte, error)
- type Config
- type Constellation
- func (g *Constellation) Receive(data []byte) ([]byte, error)
- func (g *Constellation) Send(data []byte, from string, to []string) (out []byte, err error)
- func (g *Constellation) SendSignedTx(data []byte, to []string) (out []byte, err error)
- func (g *Constellation) StoreRaw(data []byte) (out []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConstellationIsntInit = errors.New("Constellation not in use")
)
Functions ¶
Types ¶
type Client ¶
type Client struct { BaseURL string // contains filtered or unexported fields }
func (*Client) ReceivePayloadGrpc ¶
func (*Client) SendPayload ¶
func (*Client) SendPayloadGrpc ¶
func (*Client) SendSignedTx ¶
func (*Client) SendSignedTxGrpc ¶
type Config ¶
type Config struct { Socket string `toml:"socket"` WorkDir string `toml:"workdir"` BaseURL string `toml:"clienturl"` Grpc bool `toml:"grpc"` // Deprecated SocketPath string `toml:"socketPath"` }
func LoadConfig ¶
type Constellation ¶
type Constellation struct {
// contains filtered or unexported fields
}
func MaybeNew ¶
func MaybeNew(path string) *Constellation
func MustNew ¶
func MustNew(path string) *Constellation
func New ¶
func New(path string) (*Constellation, error)
func (*Constellation) SendSignedTx ¶
func (g *Constellation) SendSignedTx(data []byte, to []string) (out []byte, err error)
Click to show internal directories.
Click to hide internal directories.