Documentation
¶
Index ¶
Constants ¶
View Source
const BoltBucketName = "messages"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct {
ID ksuid.KSUID `json:"id" copier:"-"`
ChannelID ksuid.KSUID `json:"channel_id"`
Body string `json:"body" validate:"min=1,max=2048,required"`
TTL uint32 `json:"ttl,omitempty" validate:"max=2592000"`
CreatedAt time.Time `json:"created_at" copier:"-"`
UpdatedAt time.Time `json:"updated_at" copier:"-"`
}
func GetAll ¶
func GetAll(db *bolt.DB, channelID ksuid.KSUID, pgn pagination.Pagination) ([]*Message, error)
Click to show internal directories.
Click to hide internal directories.