client

package
v0.0.0-...-388b756 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ApiKey *custom_middleware.ApiKey
	DB     *gorm.DB
}

func (Client) All

func (c Client) All(name string) []model.Question

func (*Client) AppendApiKey

func (c *Client) AppendApiKey(uri string) string

func (Client) Count

func (c Client) Count(name string) int64

func (Client) Pop

func (c Client) Pop(name string) (model.Question, bool)

func (*Client) QuestionUrl

func (c *Client) QuestionUrl(q model.Question, path ...string) string

func (*Client) QueueUrl

func (c *Client) QueueUrl(queue string, path ...string) string

Jump to

Keyboard shortcuts

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