Documentation
¶
Index ¶
- Variables
- type AssetType
- type AssetWithID
- type Column
- type CreateAssetOption
- type DeleteGraphAssetRequestBody
- type DeleteGraphRelationRequestBody
- type Graph
- type GraphAPI
- type GraphAPIOptions
- type Item
- type Property
- type PutGraphAssetRequestBody
- type PutGraphRelationRequestBody
- type PutGraphSchemaRequestBody
- type QueryRequestBody
- type QueryResponse
- type RecurrentTask
- type RelationKeyType
- type RelationType
- type RelationWithID
- type Transaction
Constants ¶
This section is empty.
Variables ¶
var NewGraphAPI = client.NewGraphAPI
NewGraphAPI creates a new graph API
var NewRecurrentTask = utils.NewRecurrentTask
Functions ¶
This section is empty.
Types ¶
type AssetType ¶
func CreateAsset ¶
func CreateAsset(fromType string, options ...CreateAssetOption) AssetType
CreateAsset helper function for creating an asset
type AssetWithID ¶ added in v0.0.83
type AssetWithID = knowledge.AssetWithID
type CreateAssetOption ¶ added in v0.0.66
type CreateAssetOption func(asset AssetType)
CreateAssetOption is an option that can be used when creating an asset
func WithRegexpValidation ¶ added in v0.0.66
func WithRegexpValidation(r string) CreateAssetOption
WithRegexpValidation adds a regexp validation check to an asset
func WithValuesValidation ¶ added in v0.0.66
func WithValuesValidation(expected ...string) CreateAssetOption
WithValuesValidation adds a check ensuring an asset value is part of the given list
type DeleteGraphAssetRequestBody ¶ added in v0.0.72
type DeleteGraphAssetRequestBody = client.DeleteGraphAssetRequestBody
DeleteGraphAssetRequestBody a request body for the asset removal
type DeleteGraphRelationRequestBody ¶ added in v0.0.72
type DeleteGraphRelationRequestBody = client.DeleteGraphRelationRequestBody
DeleteGraphRelationRequestBody a request body for the relation removal
type GraphAPIOptions ¶ added in v0.0.17
type GraphAPIOptions = client.GraphAPIOptions
GraphAPIOptions are the options provided to GraphAPI
type PutGraphAssetRequestBody ¶ added in v0.0.72
type PutGraphAssetRequestBody = client.PutGraphAssetRequestBody
PutGraphAssetRequestBody a request body for the asset upsert
type PutGraphRelationRequestBody ¶ added in v0.0.72
type PutGraphRelationRequestBody = client.PutGraphRelationRequestBody
PutGraphRelationRequestBody a request body for the relation upsert
type PutGraphSchemaRequestBody ¶ added in v0.0.72
type PutGraphSchemaRequestBody = client.PutGraphSchemaRequestBody
PutGraphSchemaRequestBody a request body for the schema update
type QueryRequestBody ¶ added in v0.0.72
type QueryRequestBody = client.QueryRequestBody
QueryRequestBody is the request body for a GraphAPI query
type QueryResponse ¶ added in v0.0.72
type QueryResponse = client.QueryResponse
QueryResponse is the response from the GraphAPI query
type RecurrentTask ¶
type RecurrentTask = utils.RecurrentTask
type RelationKeyType ¶
type RelationKeyType = schema.RelationKeyType
type RelationType ¶
type RelationType = schema.RelationType
func CreateRelation ¶
func CreateRelation(fromType schema.AssetType, relation, toType schema.AssetType) RelationType
CreateRelation helper function for creating a relation
type RelationWithID ¶ added in v0.0.83
type RelationWithID = knowledge.RelationWithID