Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth0Server ¶
type Auth0Server struct {
// contains filtered or unexported fields
}
func NewAuth0Server ¶
func NewAuth0Server() *Auth0Server
func (*Auth0Server) GenerateJWT ¶
func (s *Auth0Server) GenerateJWT(subject string) (string, error)
func (*Auth0Server) GenerateSub ¶
func (s *Auth0Server) GenerateSub() string
func (*Auth0Server) GetAudience ¶
func (s *Auth0Server) GetAudience() string
func (*Auth0Server) GetIssuer ¶
func (s *Auth0Server) GetIssuer() string
func (*Auth0Server) GetNickname ¶
func (s *Auth0Server) GetNickname() string
type Claims ¶
type Claims struct { jwt.Claims Issuer string `json:"iss,omitempty"` Subject string `json:"sub,omitempty"` Audience jwt.Audience `json:"aud,omitempty"` Expiry *jwt.NumericDate `json:"exp,omitempty"` NotBefore *jwt.NumericDate `json:"nbf,omitempty"` IssuedAt *jwt.NumericDate `json:"iat,omitempty"` ID string `json:"jti,omitempty"` Nickname string `json:"https://nickname.com"` }
type PostgresContainer ¶
type PostgresContainer struct { *postgres.PostgresContainer DSN string Migrations string Host string Port string User string Password string Name string // contains filtered or unexported fields }
func NewPostgresContainer ¶
func NewPostgresContainer(ctx context.Context, rootPath string) (*PostgresContainer, error)
func (*PostgresContainer) Clear ¶
func (c *PostgresContainer) Clear()
type RabbitmqContainer ¶
type RabbitmqContainer struct { testcontainers.Container Host string Port string User string Password string // contains filtered or unexported fields }
func NewRabbitmqContainer ¶
func NewRabbitmqContainer(ctx context.Context, rootPath string) (*RabbitmqContainer, error)
Click to show internal directories.
Click to hide internal directories.