Documentation ¶
Index ¶
- Constants
- func AnnotateRegistrations(reg ...any) []any
- func NewSelectorMatcher() selector.Matcher
- func NewServerAuthorizer(uts secure.TokenStore, cts *BasicTokenStore) *secure.ServerAuthorizer
- func ProviceRegistrations() []any
- type BasicTokenStore
- func (s *BasicTokenStore) Issue(context.Context, *secure.Token, time.Duration) (string, error)
- func (s *BasicTokenStore) Renew(context.Context, string, time.Duration) (string, error)
- func (s *BasicTokenStore) Revoke(context.Context, string) (*secure.Token, error)
- func (s *BasicTokenStore) Verify(ctx context.Context, value string) (*secure.Token, error)
Constants ¶
View Source
const ServerRegistrationsTag = `group:"server/grpc.registrations"`
Variables ¶
This section is empty.
Functions ¶
func AnnotateRegistrations ¶
func NewSelectorMatcher ¶
func NewServerAuthorizer ¶
func NewServerAuthorizer(uts secure.TokenStore, cts *BasicTokenStore) *secure.ServerAuthorizer
func ProviceRegistrations ¶
func ProviceRegistrations() []any
Types ¶
type BasicTokenStore ¶
type BasicTokenStore struct {
// contains filtered or unexported fields
}
func NewBasicTokenStore ¶
func NewBasicTokenStore(drs repos.DataRepos) (*BasicTokenStore, error)
Click to show internal directories.
Click to hide internal directories.