Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerInterceptor ¶
func NewServerInterceptor(authenticator Authenticator) rpc.ServerInterceptor
NewServerInterceptor returns a new ServerInterceptor.
Types ¶
type Authenticator ¶
Authenticator defines the interface used to authenticate a token.
type AuthenticatorFunc ¶
AuthenticatorFunc is a function that implements Authenticator
func (AuthenticatorFunc) Authenticate ¶
Authenticate implements Authenticator.
Click to show internal directories.
Click to hide internal directories.