twirp

package
v0.8.11 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWTHook added in v0.3.0

func JWTHook(a auth.Agent) *twirp.ServerHooks

JWTHook is the twirp server hook to validate JWTs

func LoggingHooks

func LoggingHooks() *twirp.ServerHooks

LoggingHooks creates server hooks which log on requests and responses automatically

func LoggingHooksWithExceptions added in v0.6.0

func LoggingHooksWithExceptions(exceptions ...LoggingException) *twirp.ServerHooks

LoggingHooksWithExceptions creates server hooks which log on requests and responses automatically

func ToTwirpError

func ToTwirpError(e error, m string) error

ToTwirpError converts an error to a Twirp response error

Types

type LoggingException added in v0.6.0

type LoggingException struct {
	Method  string
	Service string
}

LoggingException represents a service method we don't want to log

Jump to

Keyboard shortcuts

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