AdminHTTP

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.4.5

type Config struct {
	AppUrl         string        `yaml:"app_url"`
	DeprecatedTime time.Duration `yaml:"deprecated_time"`
	PageSize       int           `yaml:"page_size"`
	AppTitle       string        `yaml:"app_title"`
}

type Controller

type Controller struct {
	controller.Mock
	// contains filtered or unexported fields
}

func New

func New(name string) *Controller

func (*Controller) Init

func (t *Controller) Init(app interfaces.IEngine, cfg map[string]interface{}) error

type Feature added in v0.5.0

type Feature struct {
	ID           string    `json:"id"`
	Name         string    `json:"name"`
	Description  string    `json:"description"`
	Value        int       `json:"value"`
	Used         bool      `json:"used"`
	IsDeprecated bool      `json:"is_deprecated"`
	Services     []Service `json:"services"`
	Keys         []Key     `json:"keys"`
	CreatedAt    time.Time `json:"created_at"`
	UpdatedAt    time.Time `json:"updated_at"`
}

type GetFeaturesRequest added in v0.5.0

type GetFeaturesRequest struct {
	ServiceId    string
	Find         string
	IsDeprecated bool
	Page         int
}

func (*GetFeaturesRequest) FromRequest added in v0.5.0

func (t *GetFeaturesRequest) FromRequest(ctx httpSrv.ICtx) error

type GetFeaturesResponse added in v0.5.0

type GetFeaturesResponse struct {
	Page       int       `json:"page"`
	TotalPages int       `json:"total_pages"`
	Features   []Feature `json:"features"`
}

type Key added in v0.5.0

type Key struct {
	ID     string  `json:"id"`
	Name   string  `json:"name"`
	Value  int     `json:"value"`
	Params []Param `json:"params"`
}

type Param added in v0.5.0

type Param struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Value int    `json:"value"`
}

type Service added in v0.5.0

type Service struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Active bool   `json:"active"`
}

Jump to

Keyboard shortcuts

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