Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextAuthInfo ¶
func (ContextAuthInfo) AllowGistsWithoutLogin ¶
func (auth ContextAuthInfo) AllowGistsWithoutLogin() (bool, error)
func (ContextAuthInfo) RequireLogin ¶
func (auth ContextAuthInfo) RequireLogin() (bool, error)
type PaginationParams ¶
type PaginationParams struct {
Page int `schema:"page,omitempty"`
Sort string `schema:"sort,omitempty"`
Order string `schema:"order,omitempty"`
Title string `schema:"title,omitempty"`
Visibility string `schema:"visibility,omitempty"`
Language string `schema:"language,omitempty"`
Topics string `schema:"topics,omitempty"`
Query string `schema:"q,omitempty"`
HasPrevious bool `schema:"-"` // Exclude from URL parameters
HasNext bool `schema:"-"`
}
func (PaginationParams) NextURL ¶
func (p PaginationParams) NextURL() template.URL
func (PaginationParams) PreviousURL ¶
func (p PaginationParams) PreviousURL() template.URL
func (PaginationParams) String ¶
func (p PaginationParams) String() string
func (PaginationParams) WithParams ¶
func (p PaginationParams) WithParams(pairs ...string) template.URL
Click to show internal directories.
Click to hide internal directories.