Versions in this module Expand all Collapse all v0 v0.3.4 Sep 23, 2026 v0.3.3 Sep 23, 2026 v0.3.2 Sep 22, 2026 v0.3.1 Sep 21, 2026 v0.3.0 Sep 21, 2026retracted v0.2.1 Sep 18, 2026 v0.2.0 Sep 17, 2026 Changes in this version + type Extension struct + Handler http.Handler + Prefix string type Index + Extensions []string type Sources + Extensions []Extension v0.1.0 Sep 17, 2026 Changes in this version + const DefaultMaxLogs + const DefaultMaxRequests + const DefaultMaxStreams + const DefaultStreamDuration + const MaxTokenLength + const MinTokenLength + const Prefix + const RouteHandler + const RouteOpenAPI + var ErrInvalidToken = fmt.Errorf("devconsole: the token must be %d to %d visible ASCII characters", ...) + var ErrStreamsClosed = errors.New("devconsole: closed") + var ErrUnavailable = errors.New("devconsole: unavailable") + var ErrUnknownPreview = errors.New("no such email preview") + func CheckToken(token string) error + func LooksSecret(name string) bool + func MailpitSource(baseURL string, client *http.Client) (func(ctx context.Context) (Mail, error), error) + func OpenAPI() []byte + func RecordRoute(router http.Handler) http.Handler + func SortRoutes(routes []Route) + type Address struct + Address string + Name string + type App struct + Commit string + Env string + Flags []Flag + GoVersion string + Jobs []Job + Libraries []Library + Modules []string + Name string + Permissions []PermissionCatalog + Settings []Setting + Version string + type Attr struct + Key string + Value string + type ConfigList struct + Variables []EnvKey + type Console struct + func New(token string, opts ...Option) (*Console, error) + func (c *Console) Close() + func (c *Console) Middleware() func(http.Handler) http.Handler + func (c *Console) Mount(next http.Handler, logger *slog.Logger) http.Handler + func (c *Console) Operator(prefix string, a actor.Actor, logger *slog.Logger) func(http.Handler) http.Handler + func (c *Console) RecordRequest(r Request) + type EnvKey struct + Name string + Secret bool + Set bool + Value string + type EnvKeys struct + func (e *EnvKeys) List() []EnvKey + func (e *EnvKeys) Read(name, value string) + func (e *EnvKeys) ReadSecret(name string, set bool) + type Flag struct + Client bool + Default bool + Description string + Enabled bool + Group string + Key string + Modified bool + Percentage *int + Targets int + type Index struct + Endpoints []string + type Job struct + Description string + Enabled bool + Modified bool + Name string + NextRunAt *time.Time + Schedule string + type JobRun struct + Attempt int + AttemptedAt *time.Time + CreatedAt time.Time + Errors []string + FinalizedAt *time.Time + ID int64 + Kind string + MaxAttempts int + Queue string + RequestID string + ScheduledAt time.Time + State string + type JobRunList struct + Runs []JobRun + type Library struct + Path string + Replaced bool + Version string + func Libraries() []Library + type Log struct + Attrs []Attr + DroppedAttrs int + Level string + Message string + Time time.Time + type LogList struct + Logs []Log + Max int + type Logs struct + func NewLogs(n int) (*Logs, error) + func (l *Logs) Handler() slog.Handler + func (l *Logs) List() []Log + type Mail struct + Messages []Message + Total int + WebURL string + type MailPreview struct + Category string + Description string + Name string + type MailPreviewList struct + Previews []MailPreview + type MailPreviewMessage struct + HTML string + Subject string + Text string + To string + type MailPreviewSent struct + Name string + Sent bool + To string + type MailPreviewer struct + Build func(ctx context.Context, name, to string) (gmail.Message, error) + Previews []MailPreview + Send func(ctx context.Context, m gmail.Message) error + type Message struct + Attachments int + Created time.Time + From Address + ID string + Read bool + Size int + Snippet string + Subject string + To []Address + type Migrations struct + Current int64 + Latest int64 + Pending int + type Option func(*options) + func WithAddr(addr string) Option + func WithLogs(logs *Logs) Option + func WithMaxRequests(n int) Option + func WithSources(s Sources) Option + func WithStreams(n int, duration time.Duration) Option + type Permission struct + Description string + Name string + type PermissionCatalog struct + Name string + Permissions []Permission + Roles []Role + type Request struct + DurationMS float64 + Method string + Path string + RequestID string + Route string + Status int + Time time.Time + TraceID string + type RequestList struct + Max int + Requests []Request + type Role struct + Description string + Name string + Permissions []string + type Route struct + Method string + OperationID string + Path string + Secured bool + Source string + Summary string + Tags []string + func RoutesFromOpenAPI(document []byte) ([]Route, error) + type RouteList struct + Routes []Route + type Setting struct + Default json.RawMessage + Description string + Group string + Key string + Kind string + Modified bool + OrgOverridable bool + Value json.RawMessage + type Sources struct + App func(ctx context.Context) (App, error) + Config func(ctx context.Context) ([]EnvKey, error) + Jobs func(ctx context.Context) ([]JobRun, error) + Mail func(ctx context.Context) (Mail, error) + MailPreviews *MailPreviewer + Migrations func(ctx context.Context) (Migrations, error) + Routes func(ctx context.Context) ([]Route, error) + type StreamDropped struct + Count int + type StreamEnd struct + Reason string