ctxsetters

package
v5.6.0+incompatible Latest Latest
Warning

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

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

Documentation

Overview

Package ctxsetters is an implementation detail for twirp generated code, used by the generated servers to set values in contexts for later access with the twirp package's accessors.

Do not use ctxsetters outside of twirp's generated code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMethodName

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

func WithPackageName

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

func WithResponseWriter

func WithResponseWriter(ctx context.Context, w http.ResponseWriter) context.Context

func WithServiceName

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

func WithStatusCode

func WithStatusCode(ctx context.Context, code int) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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