Documentation ¶
Index ¶
- type Config
- type Runtime
- func (rt *Runtime) AddEndpoint(endpoint string) error
- func (rt *Runtime) AddJWKS(sources ...string) error
- func (rt *Runtime) AddOutbox(outboxURI string) error
- func (rt *Runtime) AddRouter(port int, router *proxy.Router) error
- func (rt *Runtime) Close() error
- func (rt *Runtime) Run(ctx context.Context) error
- func (rt *Runtime) StaticFiles(dirname string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { PublicPort int `env:"PUBLIC_PORT" default:"0"` Service []string `env:"SERVICE_ENDPOINT" default:""` StaticFiles string `env:"STATIC_FILES" default:""` SQSURL string `env:"SQS_URL" default:""` PostgresOutboxURI string `env:"POSTGRES_OUTBOX" default:""` SNSPrefix string `env:"SNS_PREFIX" default:""` CORSOrigins []string `env:"CORS_ORIGINS" default:""` JWKS []string `env:"JWKS" default:""` }
type Runtime ¶
type Runtime struct { Worker *sqslink.Worker Sender *outbox.SNSBatcher JWKS *jwks.JWKSManager PublicPort int // contains filtered or unexported fields }
func NewRuntime ¶
func NewRuntime() *Runtime
func (*Runtime) AddEndpoint ¶
func (*Runtime) StaticFiles ¶
Click to show internal directories.
Click to hide internal directories.