template

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by Ice-cream-maker DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginNames

func OriginNames() []string

OriginNames returns a list of possible string values of Origin.

Types

type HttpReqTemplate_Update

type HttpReqTemplate_Update = Template_update

type HttpRsp_Template

type HttpRsp_Template struct {
	Template `json:",inline"`
	Commands []TemplateCommand `json:"commands,omitempty"`
}

type HttpRsp_TemplateCommand

type HttpRsp_TemplateCommand = TemplateCommand

type Origin

type Origin int
 ENUM(
	none
	predefined
	system

)

const (
	// OriginNone is a Origin of type None.
	OriginNone Origin = iota
	// OriginPredefined is a Origin of type Predefined.
	OriginPredefined
	// OriginSystem is a Origin of type System.
	OriginSystem
)

func ParseOrigin

func ParseOrigin(name string) (Origin, error)

ParseOrigin attempts to convert a string to a Origin.

func (Origin) String

func (x Origin) String() string

String implements the Stringer interface.

type Scanner

type Scanner interface {
	Scan(dest ...interface{}) error
}

type Template

type Template struct {
	Id      uint64             `column:"id"      json:"id,omitempty"`   // pk
	Uuid    string             `column:"uuid"    json:"uuid,omitempty"` // uuid
	Name    string             `column:"name"    json:"name,omitempty"`
	Summary vanilla.NullString `column:"summary" json:"summary,omitempty" swaggertype:"string"`
	Origin  string             `column:"origin"  json:"origin,omitempty"`
	Created time.Time          `column:"created" json:"created,omitempty"`
	Updated vanilla.NullTime   `column:"updated" json:"updated,omitempty" swaggertype:"string"`
	Deleted vanilla.NullTime   `column:"deleted" json:"deleted,omitempty" swaggertype:"string"`
}

func (Template) ColumnNames

func (Template) ColumnNames() []string

func (*Template) Ptrs

func (row *Template) Ptrs() []interface{}

func (*Template) Scan

func (row *Template) Scan(scanner Scanner) error

func (Template) TableName

func (Template) TableName() string

func (Template) Values

func (row Template) Values() []interface{}

type TemplateCommand

type TemplateCommand struct {
	Id           uint64             `column:"id"            json:"id,omitempty"`   // pk
	Uuid         string             `column:"uuid"          json:"uuid,omitempty"` // uuid
	Name         string             `column:"name"          json:"name,omitempty"`
	Summary      vanilla.NullString `column:"summary"       json:"summary,omitempty"       swaggertype:"string"`
	TemplateUuid string             `column:"template_uuid" json:"template_uuid"`
	Sequence     int                `column:"sequence"      json:"sequence,omitempty"`
	Method       string             `column:"method"        json:"method,omitempty"`
	Args         vanilla.NullObject `column:"args"          json:"args,omitempty"          swaggertype:"object"`
	ResultFilter vanilla.NullString `column:"result_filter" json:"result_filter,omitempty" swaggertype:"string"`
	Created      time.Time          `column:"created"       json:"created,omitempty"`
	Updated      vanilla.NullTime   `column:"updated"       json:"updated,omitempty"       swaggertype:"string"`
	Deleted      vanilla.NullTime   `column:"deleted"       json:"deleted,omitempty"       swaggertype:"string"`
}

func (TemplateCommand) ColumnNames

func (TemplateCommand) ColumnNames() []string

func (*TemplateCommand) Ptrs

func (row *TemplateCommand) Ptrs() []interface{}

func (*TemplateCommand) Scan

func (row *TemplateCommand) Scan(scanner Scanner) error

func (TemplateCommand) TableName

func (TemplateCommand) TableName() string

func (TemplateCommand) Values

func (row TemplateCommand) Values() []interface{}

type Template_update

type Template_update struct {
	Name    string             `column:"name"    json:"name,omitempty"`
	Summary vanilla.NullString `column:"summary" json:"summary,omitempty" swaggertype:"string"`
	Origin  string             `column:"origin"  json:"origin,omitempty"`
}

Jump to

Keyboard shortcuts

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