qlrx

package module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

qlrx

WIP: TXN2 QL tcp receiver

Release Packaging

Build test release:

goreleaser --skip-publish --rm-dist --skip-validate

Build and release:

GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	*Config
}

Api

func NewApi

func NewApi(cfg *Config) (*Api, error)

NewApi

func (*Api) GetAsset

func (a *Api) GetAsset(provisionService string, assetIdPrefix string, id string) (*provision.Asset, error)

getAsset

func (*Api) GetModel

func (a *Api) GetModel(modelService string, accountId string, modelId string) (*tm.Model, error)

GetModel

func (*Api) Inject

func (a *Api) Inject(url string, payload []byte) error

Inject posts a JSON payload to a url

func (*Api) Package

func (a *Api) Package(elements []string, model *tm.Model) []byte

Package forms a JSON object from indexed elements and a corresponding model

type Config

type Config struct {
	Logger     *zap.Logger
	HttpClient *micro.Client
}

Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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