api

package
v0.0.0-...-663e6fc Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the api type in the database.
	Label = "api"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldPath holds the string denoting the path field in the database.
	FieldPath = "path"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldAPIGroup holds the string denoting the api_group field in the database.
	FieldAPIGroup = "api_group"
	// FieldMethod holds the string denoting the method field in the database.
	FieldMethod = "method"
	// FieldIsRequired holds the string denoting the is_required field in the database.
	FieldIsRequired = "is_required"
	// Table holds the table name of the api in the database.
	Table = "sys_apis"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DefaultMethod holds the default value on creation for the "method" field.
	DefaultMethod string
	// DefaultIsRequired holds the default value on creation for the "is_required" field.
	DefaultIsRequired bool
)

Columns holds all SQL columns for api fields.

Functions

func APIGroup

func APIGroup(v string) predicate.API

APIGroup applies equality check predicate on the "api_group" field. It's identical to APIGroupEQ.

func APIGroupContains

func APIGroupContains(v string) predicate.API

APIGroupContains applies the Contains predicate on the "api_group" field.

func APIGroupContainsFold

func APIGroupContainsFold(v string) predicate.API

APIGroupContainsFold applies the ContainsFold predicate on the "api_group" field.

func APIGroupEQ

func APIGroupEQ(v string) predicate.API

APIGroupEQ applies the EQ predicate on the "api_group" field.

func APIGroupEqualFold

func APIGroupEqualFold(v string) predicate.API

APIGroupEqualFold applies the EqualFold predicate on the "api_group" field.

func APIGroupGT

func APIGroupGT(v string) predicate.API

APIGroupGT applies the GT predicate on the "api_group" field.

func APIGroupGTE

func APIGroupGTE(v string) predicate.API

APIGroupGTE applies the GTE predicate on the "api_group" field.

func APIGroupHasPrefix

func APIGroupHasPrefix(v string) predicate.API

APIGroupHasPrefix applies the HasPrefix predicate on the "api_group" field.

func APIGroupHasSuffix

func APIGroupHasSuffix(v string) predicate.API

APIGroupHasSuffix applies the HasSuffix predicate on the "api_group" field.

func APIGroupIn

func APIGroupIn(vs ...string) predicate.API

APIGroupIn applies the In predicate on the "api_group" field.

func APIGroupLT

func APIGroupLT(v string) predicate.API

APIGroupLT applies the LT predicate on the "api_group" field.

func APIGroupLTE

func APIGroupLTE(v string) predicate.API

APIGroupLTE applies the LTE predicate on the "api_group" field.

func APIGroupNEQ

func APIGroupNEQ(v string) predicate.API

APIGroupNEQ applies the NEQ predicate on the "api_group" field.

func APIGroupNotIn

func APIGroupNotIn(vs ...string) predicate.API

APIGroupNotIn applies the NotIn predicate on the "api_group" field.

func And

func And(predicates ...predicate.API) predicate.API

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.API

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.API

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.API

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.API

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.API

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.API

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.API

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.API

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.API

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Description

func Description(v string) predicate.API

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.API

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.API

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.API

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.API

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.API

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.API

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.API

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.API

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.API

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.API

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.API

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.API

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.API

DescriptionNotIn applies the NotIn predicate on the "description" field.

func ID

func ID(id uint64) predicate.API

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uint64) predicate.API

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uint64) predicate.API

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uint64) predicate.API

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uint64) predicate.API

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uint64) predicate.API

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uint64) predicate.API

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uint64) predicate.API

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uint64) predicate.API

IDNotIn applies the NotIn predicate on the ID field.

func IsRequired

func IsRequired(v bool) predicate.API

IsRequired applies equality check predicate on the "is_required" field. It's identical to IsRequiredEQ.

func IsRequiredEQ

func IsRequiredEQ(v bool) predicate.API

IsRequiredEQ applies the EQ predicate on the "is_required" field.

func IsRequiredNEQ

func IsRequiredNEQ(v bool) predicate.API

IsRequiredNEQ applies the NEQ predicate on the "is_required" field.

func Method

func Method(v string) predicate.API

Method applies equality check predicate on the "method" field. It's identical to MethodEQ.

func MethodContains

func MethodContains(v string) predicate.API

MethodContains applies the Contains predicate on the "method" field.

func MethodContainsFold

func MethodContainsFold(v string) predicate.API

MethodContainsFold applies the ContainsFold predicate on the "method" field.

func MethodEQ

func MethodEQ(v string) predicate.API

MethodEQ applies the EQ predicate on the "method" field.

func MethodEqualFold

func MethodEqualFold(v string) predicate.API

MethodEqualFold applies the EqualFold predicate on the "method" field.

func MethodGT

func MethodGT(v string) predicate.API

MethodGT applies the GT predicate on the "method" field.

func MethodGTE

func MethodGTE(v string) predicate.API

MethodGTE applies the GTE predicate on the "method" field.

func MethodHasPrefix

func MethodHasPrefix(v string) predicate.API

MethodHasPrefix applies the HasPrefix predicate on the "method" field.

func MethodHasSuffix

func MethodHasSuffix(v string) predicate.API

MethodHasSuffix applies the HasSuffix predicate on the "method" field.

func MethodIn

func MethodIn(vs ...string) predicate.API

MethodIn applies the In predicate on the "method" field.

func MethodLT

func MethodLT(v string) predicate.API

MethodLT applies the LT predicate on the "method" field.

func MethodLTE

func MethodLTE(v string) predicate.API

MethodLTE applies the LTE predicate on the "method" field.

func MethodNEQ

func MethodNEQ(v string) predicate.API

MethodNEQ applies the NEQ predicate on the "method" field.

func MethodNotIn

func MethodNotIn(vs ...string) predicate.API

MethodNotIn applies the NotIn predicate on the "method" field.

func Not

func Not(p predicate.API) predicate.API

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.API) predicate.API

Or groups predicates with the OR operator between them.

func Path

func Path(v string) predicate.API

Path applies equality check predicate on the "path" field. It's identical to PathEQ.

func PathContains

func PathContains(v string) predicate.API

PathContains applies the Contains predicate on the "path" field.

func PathContainsFold

func PathContainsFold(v string) predicate.API

PathContainsFold applies the ContainsFold predicate on the "path" field.

func PathEQ

func PathEQ(v string) predicate.API

PathEQ applies the EQ predicate on the "path" field.

func PathEqualFold

func PathEqualFold(v string) predicate.API

PathEqualFold applies the EqualFold predicate on the "path" field.

func PathGT

func PathGT(v string) predicate.API

PathGT applies the GT predicate on the "path" field.

func PathGTE

func PathGTE(v string) predicate.API

PathGTE applies the GTE predicate on the "path" field.

func PathHasPrefix

func PathHasPrefix(v string) predicate.API

PathHasPrefix applies the HasPrefix predicate on the "path" field.

func PathHasSuffix

func PathHasSuffix(v string) predicate.API

PathHasSuffix applies the HasSuffix predicate on the "path" field.

func PathIn

func PathIn(vs ...string) predicate.API

PathIn applies the In predicate on the "path" field.

func PathLT

func PathLT(v string) predicate.API

PathLT applies the LT predicate on the "path" field.

func PathLTE

func PathLTE(v string) predicate.API

PathLTE applies the LTE predicate on the "path" field.

func PathNEQ

func PathNEQ(v string) predicate.API

PathNEQ applies the NEQ predicate on the "path" field.

func PathNotIn

func PathNotIn(vs ...string) predicate.API

PathNotIn applies the NotIn predicate on the "path" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.API

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.API

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.API

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.API

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.API

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.API

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.API

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.API

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.API

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the API queries.

func ByAPIGroup

func ByAPIGroup(opts ...sql.OrderTermOption) OrderOption

ByAPIGroup orders the results by the api_group field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIsRequired

func ByIsRequired(opts ...sql.OrderTermOption) OrderOption

ByIsRequired orders the results by the is_required field.

func ByMethod

func ByMethod(opts ...sql.OrderTermOption) OrderOption

ByMethod orders the results by the method field.

func ByPath

func ByPath(opts ...sql.OrderTermOption) OrderOption

ByPath orders the results by the path field.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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