package
1.0.0
Repository: https://github.com/cloudwan/gohan.git
Documentation: pkg.go.dev

# Functions

ClearManager clears manager.
No description provided by the author
FormatParentID ...
No description provided by the author
GetManager get manager.
GetSchemaByPath - gets schema by sync_key_template path.
GetSchemaByURLPath - gets schema by resource path (from API).
NewAction create Action.
NewActionFromObject create Action object from json.
NewAuthorization is a constructor for auth info.
NewCatalog initializes Catalog.
NewEmptyPolicy Return Empty policy which match everything.
NewEndpoint initializes Endpoint.
NewEventTimeLimit is a constructor for EventTimeLimit.
NewExtension returns new extension from object.
NewIndex is a constructor for Index type.
NewIndexFromObj make Index from obj.
NewNamespace is a constructor for a namespace.
NewPathEventTimeLimit is a constructor for PathEventTimeLimit.
NewPolicy returns new policy from object.
NewProperty is a constructor for Property type.
NewPropertyFromObj make Property from obj.
NewResource is a constructor for a resource.
No description provided by the author
NewSchema is a constructor for a schema.
NewSchemaFromObj is a constructor for a schema by obj.
PolicyValidate validates api request using policy validation.
SortActions sort actions by id.

# Constants

ActionAttach allows a resource to have a relation to another resource.
ActionCreate allows to create a resource.
ActionDelete allows to delete a resource.
ActionGlob allows to perform all actions.
ActionRead allows to list resources and show details.
ActionUpdate allows to update a resource.
No description provided by the author
Index types Unique, FullText, Spatial, None.
No description provided by the author
No description provided by the author
LockRelatedResources is type of LockPolicy.
LockRelatedResources is type of LockPolicy.
Index types Unique, FullText, Spatial, None.
LockRelatedResources is type of LockPolicy.
Index types Unique, FullText, Spatial, None.
Index types Unique, FullText, Spatial, None.
No description provided by the author

# Variables

AllActions are all possible actions.
DefaultExtension configuration.

# Structs

Action struct.
Additional information for the "attach" action.
BaseAuthorization is base struct for Authorization.
Catalog represents service catalog info.
Endpoint represents Endpoint information.
EventTimeLimit is a configuration for time limits for a regex event.
Extension is a small plugin for gohan.
No description provided by the author
No description provided by the author
Index is a definition of each Index.
Link ...
Manager manages handling of schemasManager manages routing with external dataand gohan resource representationThis is a singleton class.
Namespace describes a group of schemas that form a common endpoint.
NamespaceResource ...
PathEventTimeLimit is a configuration for time limits for a regex path and a regex event.
Policy describes policy configuration for APIs.
Property is a definition of each Property.
PropertyOrder is type of property order.
Resource is a instance of resource.
No description provided by the author
Role describes user role.
Schema type for defining data type.
Schemas is a list of schemaThis struct is needed for json decode.
Version ...

# Interfaces

Authorization interface.
No description provided by the author

# Type aliases

IndexType type of index.
LockPolicy is type lock policy.
Map is a map of schema.
PropertyMap is a map of Property.
Tags are additional metadata for resources.