api

package
v0.0.0-...-3df9379 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIClientCtx context.Context

Functions

func GLPClient

func GLPClient(category string) *glpclient.Client

func GLPPrivateClient

func GLPPrivateClient(priv, pub, serverPub [32]byte) *glpclient.Client

func GLPPublish

func GLPPublish(category string, e Event) error

func GetAPIClient

func GetAPIClient() *unifiedapiclient.Client

func SetupAPIClient

func SetupAPIClient()

TODO: replace with prompts or configuration

Types

type Event

type Event struct {
	Type string `json:"type"`
	Data gin.H  `json:"data"`
}

Jump to

Keyboard shortcuts

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