Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidToken = errors.New("token is invalid") ErrExpiredToken = errors.New("token has expired") )
Functions ¶
func NewCli ¶
func NewCli(config *Config, logger *zap.SugaredLogger) *cli.App
Types ¶
type Config ¶
type Config struct { Hermes *HermesConfig Mercure *MercureEnvs }
type HermesConfig ¶
type JWTMaker ¶
type JWTMaker struct {
// contains filtered or unexported fields
}
func (*JWTMaker) CreateToken ¶
type Maker ¶
type Maker interface { CreateToken(sub string, topic string, duration time.Duration, isPublisher bool) (string, error) VerifyToken(token string) (*Token, error) }
func NewJWTMaker ¶
func NewJWTMaker(secretKey string, logger *zap.SugaredLogger) (Maker, error)
type MercureConfig ¶
type MercureEnvs ¶
type MercureEnvs struct {
Envs []MercureConfig `json:"environments"`
}
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
func GetDummy ¶
func GetDummy(config *Config, hubUrl string, secret string, logger *zap.SugaredLogger) *Orchestrator
func NewOrchestrator ¶
func NewOrchestrator(config *Config, logger *zap.SugaredLogger) (*Orchestrator, error)
Click to show internal directories.
Click to hide internal directories.