king

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: MIT Imports: 14 Imported by: 1

README


WARNING: For the general public we recommend better public & documented projects like Twitch Twirp or Improbable Engineering GRPC Web.

CLI helper

Install:

curl https://tools.altipla.consulting/bin/king > ~/bin/king && chmod +x ~/bin/king

Usage:

king auth api.altipla.consulting FOO_TOKEN
king auth api.altipla.consulting
king call foo.bar.FooService.List project=shs foo.bar=3 foo.baz=one foo.baz=two numeric:=3 boolean=true

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAuthorization

func WithAuthorization(token string) runtime.ClientOption

func WithClientTraceOption

func WithClientTraceOption(traceOption trace.StartOption) runtime.ClientOption

func WithHttpClient

func WithHttpClient(client *http.Client) runtime.ClientOption

Types

type ErrorMiddleware

type ErrorMiddleware func(ctx context.Context, appErr error)

type Server

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

func NewServer

func NewServer(opts ...ServerOption) *Server

type ServerOption

type ServerOption func(server *Server)

func Debug

func Debug(debug bool) ServerOption

func WithHttprouter

func WithHttprouter(router *httprouter.Router) ServerOption

func WithLogrus

func WithLogrus() ServerOption

func WithSentry

func WithSentry(dsn string) ServerOption

func WithServerTraceOption

func WithServerTraceOption(traceOption trace.StartOption) ServerOption

Directories

Path Synopsis
internal
test
tools

Jump to

Keyboard shortcuts

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