Documentation
¶
Index ¶
- func ProcessRequest(request *action.Request, context *Context) *action.Request
- type Context
- func (c Context) Apply(category, source string) string
- func (c Context) IdentifyVariables(category, source string) []collection.Pair[string, string]
- func (c *Context) Put(category ContextCategoy, key, value string, private bool) *Context
- func (c *Context) PutAll(category string, context map[string]ItemContext) *Context
- type ContextCategoy
- type DictionaryCategory
- type DictionaryVariables
- type ItemContext
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Id string `json:"_id"`
Status bool `json:"status"`
Timestamp int64 `json:"timestamp"`
Dictionary DictionaryCategory `json:"dictionary"`
Owner string `json:"owner"`
Collection string `json:"collection"`
Modified int64 `json:"modified"`
}
func NewContext ¶
func (Context) IdentifyVariables ¶
type ContextCategoy ¶
type ContextCategoy string
const ( URI ContextCategoy = "uri" QUERY ContextCategoy = "query" HEADER ContextCategoy = "header" COOKIE ContextCategoy = "cookie" PAYLOAD ContextCategoy = "payload" AUTH ContextCategoy = "auth" )
func (ContextCategoy) String ¶
func (s ContextCategoy) String() string
type DictionaryCategory ¶
type DictionaryCategory = collection.Dictionary[string, DictionaryVariables]
type DictionaryVariables ¶
type DictionaryVariables = collection.Dictionary[string, ItemContext]
type ItemContext ¶
type ItemContext struct {
Order int64 `json:"order"`
Private bool `json:"private"`
Status bool `json:"status"`
Value string `json:"value"`
}
func NewItemContext ¶
func NewItemContext(order int64, private, status bool, value string) ItemContext
Click to show internal directories.
Click to hide internal directories.