relationship

package
v0.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
	/**
	 * PathParams
	 */
	PathParams struct{}

	/**
	 * QueryParams
	 */
	QueryParams struct{}

	/**
	 * Body
	 */
	Body struct {
		Entity   tuple.Entity  `json:"entity"`
		Relation string        `json:"relation"`
		Subject  tuple.Subject `json:"subject"`
	}
}

DeleteRequest -

func (DeleteRequest) Validate

func (r DeleteRequest) Validate() (err error)

Validate -

type ReadRequest

type ReadRequest struct {
	/**
	 * PathParams
	 */
	PathParams struct{}

	/**
	 * QueryParams
	 */
	QueryParams struct{}

	/**
	 * Body
	 */
	Body struct {
		Filter filters.RelationTupleFilter `json:"filter"`
	}
}

ReadRequest -

func (ReadRequest) Validate

func (r ReadRequest) Validate() (err error)

Validate -

type WriteRequest

type WriteRequest struct {
	/**
	 * PathParams
	 */
	PathParams struct{}

	/**
	 * QueryParams
	 */
	QueryParams struct{}

	/**
	 * Body
	 */
	Body struct {
		SchemaVersion utils.Version `json:"schema_version" form:"schema_version" xml:"schema_version"`
		Entity        tuple.Entity  `json:"entity" form:"entity" xml:"entity"`
		Relation      string        `json:"relation" form:"relation" xml:"relation"`
		Subject       tuple.Subject `json:"subject" form:"subject" xml:"subject"`
	}
}

WriteRequest -

func (WriteRequest) Validate

func (r WriteRequest) Validate() (err error)

Validate -

Jump to

Keyboard shortcuts

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