Documentation ¶
Index ¶
- Constants
- func AuthorizedID(c *fiber.Ctx) string
- func AuthorizedKeys(c *fiber.Ctx) *keyring.SharedKeys
- func StreamAuthorizedID(ctx context.Context) string
- func StreamAuthorizedKeys(ctx context.Context) *keyring.SharedKeys
- type ClusterMiddleware
- type ClusterMiddlewareOption
- type ClusterMiddlewareOptions
Constants ¶
View Source
const ( ClusterIDKey clusterIDKeyType = "cluster_auth_cluster_id" )
Variables ¶
This section is empty.
Functions ¶
func AuthorizedID ¶
func AuthorizedID(c *fiber.Ctx) string
func AuthorizedKeys ¶
func AuthorizedKeys(c *fiber.Ctx) *keyring.SharedKeys
func StreamAuthorizedID ¶ added in v0.5.4
func StreamAuthorizedKeys ¶ added in v0.5.4
func StreamAuthorizedKeys(ctx context.Context) *keyring.SharedKeys
Types ¶
type ClusterMiddleware ¶
type ClusterMiddleware struct { ClusterMiddlewareOptions // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, keyringStore storage.KeyringStoreBroker, headerKey string, opts ...ClusterMiddlewareOption) (*ClusterMiddleware, error)
func (*ClusterMiddleware) Handle ¶
func (m *ClusterMiddleware) Handle(c *fiber.Ctx) error
func (*ClusterMiddleware) StreamServerInterceptor ¶ added in v0.5.4
func (m *ClusterMiddleware) StreamServerInterceptor() grpc.StreamServerInterceptor
func (*ClusterMiddleware) UnaryServerInterceptor ¶ added in v0.5.4
func (m *ClusterMiddleware) UnaryServerInterceptor() grpc.UnaryServerInterceptor
type ClusterMiddlewareOption ¶ added in v0.5.4
type ClusterMiddlewareOption func(*ClusterMiddlewareOptions)
func WithExcludeGRPCMethodsFromAuth ¶ added in v0.5.4
func WithExcludeGRPCMethodsFromAuth(methods ...string) ClusterMiddlewareOption
type ClusterMiddlewareOptions ¶ added in v0.5.4
type ClusterMiddlewareOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.