Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is the generation-bound routing-override HTTP resource.
type Options ¶
type Options struct {
Service routeoverride.CommandService
MaxBodyBytes int64
Log *slog.Logger
}
Options configures the GET/PUT/DELETE handler.
type PutBody ¶
type PutBody struct {
Selector string `json:"selector"`
}
PutBody is the PUT JSON document. Exactly one field is accepted.
type StateDTO ¶
type StateDTO struct {
ALegID string `json:"a_leg_id"`
Active bool `json:"active"`
Selector string `json:"selector,omitempty"`
Revision int64 `json:"revision"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
}
StateDTO is the protected GET/PUT/DELETE response. Selector is omitted when inactive. UpdatedAt is omitted only for never-mutated revision 0.
func StateToDTO ¶
func StateToDTO(s routeoverride.State) StateDTO
StateToDTO maps domain state onto the wire DTO.
Click to show internal directories.
Click to hide internal directories.