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 ¶
ToTwirpError converts an error to a Twirp response error
Types ¶
type LoggingException ¶ added in v0.6.0
LoggingException represents a service method we don't want to log
Click to show internal directories.
Click to hide internal directories.