Versions in this module Expand all Collapse all v0 v0.1.1 Apr 27, 2024 v0.1.0 Apr 27, 2024 Changes in this version type Option + func WithBuildInfo(buildInfo *debug.BuildInfo) Option + func WithRepoFile(repofile string) Option + func WithSecure(secure bool) Option type Service + func (s *Service) LoadToFile() error + func (s *Service) SaveToFile() error v0.0.7 Apr 26, 2024 Changes in this version + type Option func(*Service) + func WithPersistDB(persist bool) Option + func WithPort(port int) Option + func WithRepofile(repofile string) Option v0.0.6 Apr 26, 2024 Changes in this version type Service + API huma.API + func (s *Service) LoadRepoFromFile(filename string) error + func (s *Service) OpenAPI(openapi string) []byte + func (s *Service) PersistRepoToFile(filename string) error v0.0.5 Apr 26, 2024 v0.0.4 Apr 26, 2024 v0.0.3 Apr 26, 2024 v0.0.2 Apr 26, 2024 v0.0.1 Apr 26, 2024 Changes in this version + func LoggingHandler(h http.Handler) http.Handler + type CreateDatabaseInput struct + Name string + type CreateDatabaseOutput struct + Body Database + type CreateDatabaseStackInput struct + Name string + type Database struct + ID string + Name string + NumberOfStacks int + type DatabaseOutput struct + Body Database + type DatabaseStackInput struct + type DatabasesOutput struct + Body struct{ ... } + type PingOutput struct + Body []byte + func PingHandler(_ context.Context, _ *struct{}) (*PingOutput, error) + type PopDatabaseStackElementOutput struct + Body struct{ ... } + Status int + type PushDatabaseStackElementInput struct + Body struct{ ... } + type Service struct + GoVersion string + PID int + PersistDB bool + Platform string + Port int + Repository *repository.Repository + StartedAt time.Time + Version string + func New() (*Service, huma.API) + func (s *Service) AddRoutes(api huma.API) + func (s *Service) CreateDatabaseHandler(_ context.Context, input *CreateDatabaseInput) (*CreateDatabaseOutput, error) + func (s *Service) CreateDatabaseStackHandler(_ context.Context, input *CreateDatabaseStackInput) (*StackOutput, error) + func (s *Service) DeleteDatabaseHandler(_ context.Context, input *SingleDatabaseInput) (*struct{}, error) + func (s *Service) DeleteDatabaseStackHandler(_ context.Context, input *DatabaseStackInput) (*struct{}, error) + func (s *Service) FlushDatabaseStackHandler(_ context.Context, input *DatabaseStackInput) (*StackOutput, error) + func (s *Service) ListDatabaseStacksHandler(_ context.Context, input *StackInput) (*StacksOutput, error) + func (s *Service) ListDatabasesHandler(_ context.Context, _ *struct{}) (*DatabasesOutput, error) + func (s *Service) LoadRepositoryFromFile(filename string) error + func (s *Service) PeekDatabaseStackHandler(_ context.Context, input *DatabaseStackInput) (*StackElement, error) + func (s *Service) PopDatabaseStackHandler(_ context.Context, input *DatabaseStackInput) (*PopDatabaseStackElementOutput, error) + func (s *Service) PushDatabaseStackHandler(_ context.Context, input *PushDatabaseStackElementInput) (*StackElement, error) + func (s *Service) SaveRepositoryToFile(filename string) error + func (s *Service) ShowDatabaseHandler(_ context.Context, input *SingleDatabaseInput) (*DatabaseOutput, error) + func (s *Service) ShowDatabaseStackHandler(_ context.Context, input *DatabaseStackInput) (*StackOutput, error) + func (s *Service) Shutdown() error + func (s *Service) Start(port int) error + func (s *Service) StatusHandler(_ context.Context, _ *struct{}) (*StatusOutput, error) + type SingleDatabaseInput struct + type Stack struct + CreatedAt time.Time + ID string + Name string + Peek any + ReadAt time.Time + Size int + UpdatedAt time.Time + type StackElement struct + Body struct{ ... } + type StackInput struct + KV bool + type StackOutput struct + Body Stack + type StacksOutput struct + Body struct{ ... } + type StatusBody struct + Code string + GoVersion string + Host string + MemoryAlloc string + NumberGoroutines int + PID int + RunningFor float64 + StartedAt time.Time + Version string + type StatusOutput struct + Body StatusBody + type URLParamDatabaseID struct + DatabaseID string + type URLParamStackID struct + StackID string