Documentation
¶
Index ¶
- type ButtonDisabled
- type ButtonEnabled
- type CloseButton
- type Container
- type EnvironmentDetails
- type Flag
- type Header
- type MenuStyle
- type ResetButton
- type SecretMenu
- type Style
- type StyleMenu
- type System
- func (s *System) CreateSecretMenu(w http.ResponseWriter, r *http.Request)
- func (s *System) CreateSecretMenuInDB(ctx context.Context, environmentId string, secretMenu SecretMenu) (string, string, error)
- func (s *System) DeleteSecretMenuForEnv(ctx context.Context, envId string) error
- func (s *System) GetEnvironmentSecretMenu(ctx context.Context, environmentId string) (SecretMenu, error)
- func (s *System) GetSecretMenu(w http.ResponseWriter, r *http.Request)
- func (s *System) GetSecretMenuFromDB(ctx context.Context, menuId string) (SecretMenu, error)
- func (s *System) GetSecretMenuStyle(w http.ResponseWriter, r *http.Request)
- func (s *System) GetSecretMenuStyleFromDB(ctx context.Context, menuId string) (StyleMenu, error)
- func (s *System) UpdateSecretMenuSequence(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateSecretMenuSequenceInDB(ctx context.Context, menuId string, secretMenu SecretMenu) error
- func (s *System) UpdateSecretMenuState(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateSecretMenuStateInDB(ctx context.Context, menuId string) error
- func (s *System) UpdateSecretMenuStyle(w http.ResponseWriter, r *http.Request)
- func (s *System) UpdateSecretMenuStyleInDB(ctx context.Context, menuId string, secretMenu SecretMenu) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonDisabled ¶
type ButtonEnabled ¶
type CloseButton ¶
type Container ¶
type Container struct {
Position string `json:"position"`
BackgroundColor string `json:"backgroundColor"`
Color string `json:"color"`
BorderRadius string `json:"borderRadius"`
BorderStyle string `json:"borderStyle"`
BorderColor string `json:"borderColor"`
BorderWidth string `json:"borderWidth"`
Padding string `json:"padding"`
}
type EnvironmentDetails ¶
type Flag ¶
type Flag struct {
Display string `json:"display"`
JustifyContent string `json:"justifyContent"`
AlignItems string `json:"alignItems"`
Padding string `json:"padding"`
BackgroundColor string `json:"backgroundColor"`
Margin string `json:"margin"`
Color string `json:"color"`
MinWidth string `json:"minWidth"`
}
type MenuStyle ¶
type MenuStyle struct {
Id string `json:"style_id,omitempty"`
SQLId sql.NullString
CloseButton CloseButton `json:"close_button,omitempty"`
SQLCloseButton sql.NullString
Container Container `json:"container,omitempty"`
SQLContainer sql.NullString
ResetButton ResetButton `json:"reset_button,omitempty"`
SQLResetButton sql.NullString
Flag Flag `json:"flag,omitempty"`
SQLFlag sql.NullString
ButtonEnabled ButtonEnabled `json:"button_enabled,omitempty"`
SQLButtonEnabled sql.NullString
ButtonDisabled ButtonDisabled `json:"button_disabled,omitempty"`
SQLButtonDisabled sql.NullString
Header Header `json:"header,omitempty"`
SQLHeader sql.NullString
}
type ResetButton ¶
type SecretMenu ¶
type SecretMenu struct {
Id string `json:"menu_id"`
Enabled bool `json:"enabled"`
EnvDetails EnvironmentDetails `json:"environment_details,omitempty"`
Sequence []string `json:"sequence,omitempty"`
CustomStyle MenuStyle `json:"custom_style,omitempty"`
}
type System ¶
type System struct {
Config *ConfigBuilder.Config
}
func NewSystem ¶
func NewSystem(cfg *ConfigBuilder.Config) *System
func (*System) CreateSecretMenu ¶
func (s *System) CreateSecretMenu(w http.ResponseWriter, r *http.Request)
func (*System) CreateSecretMenuInDB ¶
func (*System) DeleteSecretMenuForEnv ¶
func (*System) GetEnvironmentSecretMenu ¶
func (*System) GetSecretMenu ¶
func (s *System) GetSecretMenu(w http.ResponseWriter, r *http.Request)
func (*System) GetSecretMenuFromDB ¶
func (*System) GetSecretMenuStyle ¶
func (s *System) GetSecretMenuStyle(w http.ResponseWriter, r *http.Request)
func (*System) GetSecretMenuStyleFromDB ¶
func (*System) UpdateSecretMenuSequence ¶
func (s *System) UpdateSecretMenuSequence(w http.ResponseWriter, r *http.Request)
func (*System) UpdateSecretMenuSequenceInDB ¶
func (*System) UpdateSecretMenuState ¶
func (s *System) UpdateSecretMenuState(w http.ResponseWriter, r *http.Request)
func (*System) UpdateSecretMenuStateInDB ¶
func (*System) UpdateSecretMenuStyle ¶
func (s *System) UpdateSecretMenuStyle(w http.ResponseWriter, r *http.Request)
func (*System) UpdateSecretMenuStyleInDB ¶
Click to show internal directories.
Click to hide internal directories.