announcement

package
v0.0.0-...-b608779 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement

type Announcement struct {
	gorm.Model
	Content string
}

type AnnouncementController

type AnnouncementController struct{}

func (*AnnouncementController) GetAnnouncements

func (ac *AnnouncementController) GetAnnouncements(c *gin.Context) (int, interface{})

type AnnouncementRouter

type AnnouncementRouter struct {
	// contains filtered or unexported fields
}

func (*AnnouncementRouter) GetAnnouncements

func (r *AnnouncementRouter) GetAnnouncements(c *gin.Context)

type AnnouncementStore

type AnnouncementStore struct {
	// contains filtered or unexported fields
}

func NewAnnouncementStore

func NewAnnouncementStore() AnnouncementStore

func (*AnnouncementStore) Find

func (s *AnnouncementStore) Find() ([]Announcement, error)

type GetAnnouncementsResponse

type GetAnnouncementsResponse struct {
	Announcements []SingleAnnouncementResponse `json:"announcements"`
}

type GetAnnouncementsSerializer

type GetAnnouncementsSerializer struct {
	Announcements []Announcement
}

func (GetAnnouncementsSerializer) Response

type SingleAnnouncementResponse

type SingleAnnouncementResponse struct {
	Time    time.Time `json:"time"`
	Content string    `json:"content"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL