Versions in this module Expand all Collapse all v0 v0.2.0 Jan 4, 2025 v0.1.0 Jan 4, 2025 Changes in this version + func StartGRPCServer(tokenService *TokenService) *grpc.Server + func StartServers(cfg Config) error + type AuthInterceptor struct + func NewAuthInterceptor(publicKey string) *AuthInterceptor + func (interceptor *AuthInterceptor) Stream() grpc.StreamServerInterceptor + func (interceptor *AuthInterceptor) Unary() grpc.UnaryServerInterceptor + type Config = config.Config + type Token struct + type TokenService struct + func NewTokenService(cfg Config) *TokenService + func (s *TokenService) Load() error + func (s *TokenService) RetrieveInstallation(ctx context.Context, req *proto.Installation) (*proto.Installation, error) + func (s *TokenService) RetrieveToken(ctx context.Context, req *proto.SingleToken) (*proto.SingleToken, error) + func (s *TokenService) RevokeToken(ctx context.Context, req *proto.SingleToken) (*proto.RevokeMessage, error) + func (s *TokenService) Save() error + func (s *TokenService) StoreInstallation(ctx context.Context, req *proto.Installation) (*proto.Installation, error) + func (s *TokenService) StoreToken(ctx context.Context, req *proto.SingleToken) (*proto.SingleToken, error) + func (s *TokenService) SyncWithError(ctx context.Context, period time.Duration, errCh chan<- error) + func (s *TokenService) UpdateToken(ctx context.Context, req *proto.SingleToken) (*proto.SingleToken, error)