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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
cmd/king command

Jump to

Keyboard shortcuts

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