client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DO

func DO(configfile, fn string, args *Args) (string, error)

DO : fn ["HELP", "SIF2JSON", "JSON2SIF"]

func DOwithTrace

func DOwithTrace(ctx context.Context, configfile, fn string, args *Args) (string, error)

DOwithTrace :

Types

type Args

type Args struct {
	Data   []byte
	Ver    string
	ToNATS bool
}

Args is arguments for "Route"

type Config

type Config struct {
	Path        string
	LogFile     string
	ServiceName string
	Server      struct {
		Protocol string
		IP       string
		Port     int
	}
	Access struct {
		Timeout int
	}
	Route struct {
		HELP     string
		SIF2JSON string
		JSON2SIF string
	}
}

Config is toml

Jump to

Keyboard shortcuts

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