schema

package
v0.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSchemaRoutes

func NewSchemaRoutes(handler *echo.Group, ss services.ISchemaService, m managers.IEntityConfigManager, l logger.Interface)

NewSchemaRoutes -

Types

type LookupRequest

type LookupRequest struct {
	SchemaVersion utils.Version `json:"schema_version"`
	EntityType    string        `json:"entity_type"`
	RelationNames []string      `json:"relation_names"`
}

LookupRequest -

func (LookupRequest) Validate

func (r LookupRequest) Validate() (err error)

Validate -

type LookupResponse

type LookupResponse struct {
	ActionNames []string `json:"action_names"`
}

LookupResponse -

type ReadRequest

type ReadRequest struct {
	SchemaVersion utils.Version `json:"schema_version"`
}

ReadRequest -

func (ReadRequest) Validate

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

Validate -

type ReadResponse

type ReadResponse struct {
	Entities map[string]schema.Entity `json:"entities"`
}

ReadResponse -

type WriteResponse

type WriteResponse struct {
	Version string `json:"version"`
}

WriteResponse -

Jump to

Keyboard shortcuts

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