Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnouncementRequest ¶
func (AnnouncementRequest) Validate ¶
func (r AnnouncementRequest) Validate() error
type AnnouncementResponse ¶
type AnnouncementResponse struct { ID string `json:"id"` Text string `json:"text"` Position Location `json:"position"` ImageURL string `json:"imageURL"` CreatedAt time.Time `json:"createdAt"` }
func ToAnnouncementResponses ¶
func ToAnnouncementResponses(announcements []*model.Announcement) []AnnouncementResponse
type Config ¶
type Config struct { Port string AnnouncementStorage storage.AnnouncementStorage FileStorage storage.FileStorage Statics http.FileSystem DevMode bool Checker health.Checker FrontendConfig map[string]any }
type Filter ¶
type ValidationError ¶
type ValidationError struct { Message string `json:"message"` Fields map[string]string `json:"fields"` }
func NewValidationError ¶
func NewValidationError(msg string) *ValidationError
func (*ValidationError) AppendIssue ¶
func (e *ValidationError) AppendIssue(field, message string)
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) HasIssues ¶
func (e *ValidationError) HasIssues() bool
Click to show internal directories.
Click to hide internal directories.