Documentation
¶
Overview ¶
Package rkgrcpauth is auth interceptor for grpc framework
Index ¶
- func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
- func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
StreamClientInterceptor create new stream client interceptor.
func StreamServerInterceptor ¶
func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
StreamServerInterceptor create new stream server interceptor.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
UnaryClientInterceptor create new unary client interceptor.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
UnaryServerInterceptor create new unary server interceptor.
Types ¶
type Option ¶
type Option func(*optionSet)
func WithApiKeyAuth ¶
WithApiKeyAuth provide API Key auth credentials. An API key is a token that a client provides when making API calls. With API key auth, you send a key-value pair to the API either in the request headers or query parameters. Some APIs use API keys for authorization.
The API key was injected into incoming header with key of X-API-Key
func WithBasicAuth ¶
WithBasicAuth provide basic auth credentials formed as user:pass. We will encode credential with base64 since incoming credential from client would be encoded.
func WithEntryNameAndType ¶
WithEntryNameAndType provide entry name and entry type.
func WithIgnorePrefix ¶
WithIgnorePrefix provide methods that will ignore. Mainly used for swagger main page and RK TV entry.