Documentation ¶
Index ¶
- Constants
- type CreateRequest
- type Handler
- func (h *Handler) Create(ctx context.Context, req CreateRequest) (*Setting, error)
- func (c *Handler) Flags(cReg *components.Registry) []cli.Flag
- func (h *Handler) Get(ctx context.Context, id, ownerId, service, name string) (*Setting, error)
- func (h *Handler) Health(context context.Context) error
- func (h *Handler) Init(cReg *components.Registry, cli *cli.Context) error
- func (c *Handler) Initialized() bool
- func (h *Handler) List(ctx context.Context, id, ownerId, service, name string) ([]*Setting, error)
- func (c *Handler) Name() string
- func (c *Handler) Priority() int
- func (h *Handler) Stop() error
- func (h *Handler) Update(ctx context.Context, req UpdateRequest) (*Setting, error)
- func (h *Handler) Upsert(ctx context.Context, req UpsertRequest) (*Setting, error)
- type Setting
- type UpdateRequest
- type UpsertRequest
Constants ¶
View Source
const Name = "settingsClient"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func MustReg ¶
func MustReg(cReg *components.Registry) *Handler
func (*Handler) Create ¶
func (*Handler) Flags ¶
func (c *Handler) Flags(cReg *components.Registry) []cli.Flag
func (*Handler) Get ¶
func (*Handler) Init ¶
func (h *Handler) Init(cReg *components.Registry, cli *cli.Context) error
func (*Handler) List ¶
func (*Handler) Update ¶
type Setting ¶
type UpdateRequest ¶
type UpsertRequest ¶
type UpsertRequest struct { // For the Update Selector only Id uuid.UUID `json:"id,omitempty"` OwnerId uuid.UUID `json:"ownerId,omitempty"` Service string `json:"service,omitempty"` Name string `json:"name,omitempty"` // Upsert content Content []byte `json:"content,omitempty"` RolesRead []string `json:"rolesRead,omitempty"` RolesUpdate []string `json:"rolesUpdate,omitempty"` }
Click to show internal directories.
Click to hide internal directories.