namespace

package
v0.0.0-...-64d0ec3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) string

Get gets namespace from context

func Middleware

func Middleware(h http.Handler) http.Handler

Middleware strips prefix path as namespace

func NewContext

func NewContext(parent context.Context, ns string) context.Context

NewContext creates new context with namespace

func Split

func Split(s string) (ns string, name string)

Split splits namespace and name

func With

func With(ctx context.Context, name string) string

With returns namespace with resource name

Types

This section is empty.

Jump to

Keyboard shortcuts

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