Documentation
¶
Index ¶
- func EnsureListOptions(options *entity.ListOptions) *entity.ListOptions
- func EnsurePaginated(filter *entity.Paginated)
- func GetCurrentUserId(ctx context.Context, db database.Database) (int64, error)
- func GetPageInfo[T entity.HasCursor](res []T, cursors []string, pageSize int, currentCursor *string) *entity.PageInfo
- func GetPages(firstCursor *string, cursors []string, pageSize int) ([]entity.Page, entity.Page)
- func GetTestConfig() *util.Config
- func NewAdminContext() context.Context
- type HandlerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureListOptions ¶ added in v1.25.0
func EnsureListOptions(options *entity.ListOptions) *entity.ListOptions
func EnsurePaginated ¶
func GetCurrentUserId ¶
func GetPageInfo ¶
func GetTestConfig ¶ added in v1.47.0
func NewAdminContext ¶ added in v1.26.0
Types ¶
type HandlerContext ¶ added in v1.24.0
type HandlerContext struct {
DB database.Database
EventReg event.EventRegistry
Cache cache.Cache
Authz openfga.Authorization
}
Click to show internal directories.
Click to hide internal directories.