query

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParamOptions

type ParamOptions func(*Params)

func WithActivate

func WithActivate(activate bool) ParamOptions

func WithAfter

func WithAfter(after string) ParamOptions

func WithExpand

func WithExpand(expand string) ParamOptions

func WithFilter

func WithFilter(filter string) ParamOptions

func WithFormat

func WithFormat(format string) ParamOptions

func WithIncludeNonDeleted

func WithIncludeNonDeleted(includeNonDeleted bool) ParamOptions

func WithLimit

func WithLimit(limit int64) ParamOptions

func WithOauthTokens

func WithOauthTokens(oauthTokens bool) ParamOptions

func WithProvider

func WithProvider(provider string) ParamOptions

func WithQ

func WithQ(q string) ParamOptions

func WithQueryScope

func WithQueryScope(query_scope string) ParamOptions

func WithRemoveUsers

func WithRemoveUsers(removeUsers bool) ParamOptions

func WithSearch

func WithSearch(search string) ParamOptions

func WithSendEmail

func WithSendEmail(sendEmail bool) ParamOptions

func WithShowAll

func WithShowAll(showAll bool) ParamOptions

func WithSince

func WithSince(since string) ParamOptions

func WithSortOrder

func WithSortOrder(sortOrder string) ParamOptions

func WithTargetAid

func WithTargetAid(targetAid string) ParamOptions

func WithTempPassword

func WithTempPassword(tempPassword bool) ParamOptions

func WithTemplateId

func WithTemplateId(templateId string) ParamOptions

func WithUntil

func WithUntil(until string) ParamOptions

func WithUpdatePhone

func WithUpdatePhone(updatePhone bool) ParamOptions

type Params

type Params struct {
	Q                 string `json:"q,omitempty"`
	After             string `json:"after,omitempty"`
	Limit             int64  `json:"limit,omitempty"`
	Filter            string `json:"filter,omitempty"`
	Expand            string `json:"expand,omitempty"`
	IncludeNonDeleted *bool  `json:"includeNonDeleted,omitempty"`
	Activate          *bool  `json:"activate,omitempty"`
	TargetAid         string `json:"targetAid,omitempty"`
	QueryScope        string `json:"query_scope,omitempty"`
	RemoveUsers       *bool  `json:"removeUsers,omitempty"`
	Until             string `json:"until,omitempty"`
	Since             string `json:"since,omitempty"`
	SortOrder         string `json:"sortOrder,omitempty"`
	Format            string `json:"format,omitempty"`
	Search            string `json:"search,omitempty"`
	Provider          string `json:"provider,omitempty"`
	ShowAll           *bool  `json:"showAll,omitempty"`
	SendEmail         *bool  `json:"sendEmail,omitempty"`
	UpdatePhone       *bool  `json:"updatePhone,omitempty"`
	TemplateId        string `json:"templateId,omitempty"`
	TempPassword      *bool  `json:"tempPassword,omitempty"`
	OauthTokens       *bool  `json:"oauthTokens,omitempty"`
}

func NewQueryParams

func NewQueryParams(paramOpt ...ParamOptions) *Params

func (*Params) String

func (p *Params) String() string

Jump to

Keyboard shortcuts

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