query

package
v0.0.0-...-9dc8269 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListFilterField

type ListFilterField struct {
	DBName   string
	Getter   string
	Optional bool
}

type PSMQuerySet

type PSMQuerySet struct {
	GoName  string
	Service *protogen.Service

	GetMethod protogen.Method
	GetREQ    protogen.GoIdent
	GetRES    protogen.GoIdent

	ListMethod protogen.Method
	ListREQ    protogen.GoIdent
	ListRES    protogen.GoIdent

	ListEventsMethod *protogen.Method
	ListEventsREQ    *protogen.GoIdent
	ListEventsRES    *protogen.GoIdent

	ListRequestFilter       []ListFilterField
	ListEventsRequestFilter []ListFilterField
}

func BuildQuerySet

func BuildQuerySet(qs QueryServiceGenerateSet) (*PSMQuerySet, error)

func WalkFile

func WalkFile(file *protogen.File) ([]*PSMQuerySet, error)

func (PSMQuerySet) Write

func (qs PSMQuerySet) Write(g *protogen.GeneratedFile)

type QueryServiceGenerateSet

type QueryServiceGenerateSet struct {
	// contains filtered or unexported fields
}

func NewQueryServiceGenerateSet

func NewQueryServiceGenerateSet(name string, service *protogen.Service) *QueryServiceGenerateSet

func (*QueryServiceGenerateSet) AddMethod

func (qs *QueryServiceGenerateSet) AddMethod(method *protogen.Method, methodOpt *ext_j5pb.StateQueryMethodOptions) error

type QueryServiceSourceSet

type QueryServiceSourceSet struct {
	QuerySets []*QueryServiceGenerateSet
}

Jump to

Keyboard shortcuts

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