services

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 22 Imported by: 0

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

func (*Auth0Server) Terminate

func (s *Auth0Server) Terminate(ctx context.Context) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL