Documentation ¶
Index ¶
- Constants
- func BoolPtr(b bool) *bool
- func Close(c io.Closer)
- func ConnectRabbitMQ(config string) (*amqp.Connection, error)
- func Contains(s []string, e string) bool
- func GetTextPreview(text string, options TextPreviewOptions) string
- func MaxInt64(a, b int64) int64
- func MinMax(array []int32) (int32, int32)
- func SQLNullInt64ToPtr(v sql.NullInt64) *int64
- type Pages
- type Paginator
- func (s *Paginator) Count(ctx context.Context) (int32, error)
- func (s *Paginator) GetCurrentItems(ctx context.Context) (*goqu.SelectDataset, error)
- func (s *Paginator) GetItemsByPage(ctx context.Context, pageNumber int32) (*goqu.SelectDataset, error)
- func (s *Paginator) GetPages(ctx context.Context) (*Pages, error)
- func (s *Paginator) GetTotalItemCount(ctx context.Context) (int32, error)
- type TextPreviewOptions
Constants ¶
View Source
const DefaultItemCountPerPage = 10
Variables ¶
This section is empty.
Functions ¶
func ConnectRabbitMQ ¶
func ConnectRabbitMQ(config string) (*amqp.Connection, error)
func GetTextPreview ¶ added in v1.41.0
func GetTextPreview(text string, options TextPreviewOptions) string
func SQLNullInt64ToPtr ¶
Types ¶
type Paginator ¶
type Paginator struct { SQLSelect *goqu.SelectDataset ItemCountPerPage int32 CurrentPageNumber int32 // contains filtered or unexported fields }
func (*Paginator) GetCurrentItems ¶
func (*Paginator) GetItemsByPage ¶
type TextPreviewOptions ¶ added in v1.41.0
Click to show internal directories.
Click to hide internal directories.