k.malhotra.cc/go/numclient Index | Files

package numary

import "k.malhotra.cc/go/numclient"

Index

Package Files

numclient.go types.go

type Connection

type Connection struct {
    Server string
    // contains filtered or unexported fields
}

Connects to numary, handles auth and basic request stuff

func Connect

func Connect(server string) Connection

func (Connection) Ledger

func (c Connection) Ledger(name string) Ledger

func (Connection) Status

func (c Connection) Status() error

type Ledger

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

func (Ledger) Stats

func (l Ledger) Stats() (stats Stats, isError bool)

type Stats

type Stats = ledger.Stats

referencing types from here to ensure interface can remain same even if numary ever changes

Version
v0.0.0-20210802034858-b8406bd21482 (latest)
Published
Aug 2, 2021
Platform
linux/amd64
Imports
4 packages (graph)
Last checked
2 months ago

Tools for package owners.