Documentation
¶
Index ¶
- Variables
- type AllowedOrigin
- type App
- type AppSetting
- type Client
- func (c *Client) CreateApp(ctx context.Context, baseURL string, stackID int64, appData App) (App, error)
- func (c *Client) DeleteApp(ctx context.Context, baseURL string, stackID int64, appID int64) error
- func (c *Client) GetApp(ctx context.Context, baseURL string, stackID int64, appID int64) (App, error)
- func (c *Client) GetApps(ctx context.Context, baseURL string, stackID int64) ([]App, error)
- func (c *Client) Host() string
- func (c *Client) UpdateApp(ctx context.Context, baseURL string, stackID int64, appID int64, appData App) (App, error)
- type LogLabel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("not found") )
Functions ¶
This section is empty.
Types ¶
type AllowedOrigin ¶
AllowedOrigin ...
type App ¶
type App struct { ID int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` Key string `json:"appKey,omitempty"` ExtraLogLabels []LogLabel `json:"extraLogLabels,omitempty"` CORSAllowedOrigins []AllowedOrigin `json:"corsOrigins,omitempty"` AllowedRate uint64 `json:"allowedRate,omitempty"` Settings map[string]string `json:"settings,omitempty"` CollectEndpointURL string `json:"collectEndpointURL,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` }
App model
func (*App) UnmarshalJSON ¶
type AppSetting ¶
Click to show internal directories.
Click to hide internal directories.