Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Condition ¶
type Condition struct { Name string `json:"name"` Field string `json:"field"` Value interface{} `json:"value"` Operator string `json:"operator"` Conditions []*Condition `json:"conditions"` Runtime *goja.Runtime }
func NewCondition ¶
func NewCondition() *Condition
func (*Condition) InitRuntime ¶
func (condition *Condition) InitRuntime()
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func NewEndpoint ¶
func (*Endpoint) InitStates ¶
type EndpointConfig ¶
type EndpointConfig struct { Method string `json:"method"` Uri string `json:"uri"` Query QueryConfig `json:"query"` Response ResponseConfig `json:"response"` }
type Pagination ¶
type Pagination struct { Limit interface{} `json:"limit"` Page interface{} `json:"page"` Runtime *goja.Runtime }
func New ¶
func New() *Pagination
func (*Pagination) InitRuntime ¶
func (pagination *Pagination) InitRuntime()
type Presenter ¶
type Presenter struct {
// contains filtered or unexported fields
}
func NewPresenter ¶
func NewPresenter(server http_server.Server) *Presenter
type QueryAdapter ¶
type QueryAdapter struct {
// contains filtered or unexported fields
}
func NewQueryAdapter ¶
func NewQueryAdapter() *QueryAdapter
func (*QueryAdapter) Init ¶
func (adapter *QueryAdapter) Init() error
func (*QueryAdapter) Query ¶
func (adapter *QueryAdapter) Query(table string, condition *Condition, option *QueryOption) (*querykit.QueryReply, error)
type QueryConfig ¶
type QueryOption ¶
type ResponseConfig ¶
type ResponseConfig struct { ContentType string `json:"contentType"` State map[string]StateDefinition `json:"state"` }
type StateDefinition ¶
type VariableType ¶
type VariableType int
const ( VARIABLE_TYPE_PARAMS VariableType = iota VARIABLE_TYPE_QUERYSTRING VARIABLE_TYPE_BODY )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.