schema

package
v0.0.0-...-a9b63ba Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	ent.Schema
}

Command holds the schema definition for the Command entity.

func (Command) Edges

func (Command) Edges() []ent.Edge

Edges of the Command.

func (Command) Fields

func (Command) Fields() []ent.Field

Fields of the Command.

type Message

type Message struct {
	ent.Schema
}

Message holds the schema definition for the Message entity.

func (Message) Edges

func (Message) Edges() []ent.Edge

Edges of the Message.

func (Message) Fields

func (Message) Fields() []ent.Field

Fields of the Message.

type MessageType

type MessageType int

MessageType ... ENUM(none,message,chat_member,max)

const (
	// MessageTypeNone is a MessageType of type None.
	MessageTypeNone MessageType = iota
	// MessageTypeMessage is a MessageType of type Message.
	MessageTypeMessage
	// MessageTypeChatMember is a MessageType of type Chat_member.
	MessageTypeChatMember
	// MessageTypeMax is a MessageType of type Max.
	MessageTypeMax
)

func ParseMessageType

func ParseMessageType(name string) (MessageType, error)

ParseMessageType attempts to convert a string to a MessageType

func (MessageType) String

func (x MessageType) String() string

String implements the Stringer interface.

type Statistic

type Statistic struct {
	ent.Schema
}

Statistic holds the schema definition for the Statistic entity.

func (Statistic) Edges

func (Statistic) Edges() []ent.Edge

Edges of the Statistic.

func (Statistic) Fields

func (Statistic) Fields() []ent.Field

Fields of the Statistic.

Jump to

Keyboard shortcuts

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