annotations

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EdgeConfigID = "EdgeConfig"
View Source
const EntityConfigID = "EntityConfig"
View Source
const (
	FieldConfigID = "FieldConfig"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EdgeConfig

type EdgeConfig struct {
	// contains filtered or unexported fields
}

func Edge

func Edge() *EdgeConfig

func (*EdgeConfig) DisableRead

func (e *EdgeConfig) DisableRead(opts ...entityConfigOption) *EdgeConfig

func (*EdgeConfig) DisableWrite

func (e *EdgeConfig) DisableWrite(opts ...entityConfigOption) *EdgeConfig

func (*EdgeConfig) EnableRead

func (e *EdgeConfig) EnableRead(opts ...entityConfigOption) *EdgeConfig

func (*EdgeConfig) EnableWrite

func (e *EdgeConfig) EnableWrite(opts ...edgeConfigOption) *EdgeConfig

func (*EdgeConfig) GetReadEnabled

func (c *EdgeConfig) GetReadEnabled(mode string) *bool

func (*EdgeConfig) GetWriteEnabled

func (c *EdgeConfig) GetWriteEnabled(mode string) *bool

func (*EdgeConfig) Name

func (*EdgeConfig) Name() string

type EntityConfig

type EntityConfig struct {
	// contains filtered or unexported fields
}

func Entity

func Entity() *EntityConfig

func (*EntityConfig) DisableCreate

func (c *EntityConfig) DisableCreate(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) DisableDelete

func (c *EntityConfig) DisableDelete(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) DisableReadMany

func (c *EntityConfig) DisableReadMany(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) DisableReadOne

func (c *EntityConfig) DisableReadOne(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) DisableUpdate

func (c *EntityConfig) DisableUpdate(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) EnableCreate

func (c *EntityConfig) EnableCreate(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) EnableDelete

func (c *EntityConfig) EnableDelete(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) EnableReadMany

func (c *EntityConfig) EnableReadMany(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) EnableReadOne

func (c *EntityConfig) EnableReadOne(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) EnableUpdate

func (c *EntityConfig) EnableUpdate(opts ...entityConfigOption) *EntityConfig

func (*EntityConfig) GetCreateOpEnabled

func (c *EntityConfig) GetCreateOpEnabled(mode string) *bool

func (*EntityConfig) GetDeleteOpEnabled

func (c *EntityConfig) GetDeleteOpEnabled(mode string) *bool

func (*EntityConfig) GetReadManyOpEnabled

func (c *EntityConfig) GetReadManyOpEnabled(mode string) *bool

func (*EntityConfig) GetReadOneOpEnabled

func (c *EntityConfig) GetReadOneOpEnabled(mode string) *bool

func (*EntityConfig) GetUpdateOpEnabled

func (c *EntityConfig) GetUpdateOpEnabled(mode string) *bool

func (*EntityConfig) Name

func (c *EntityConfig) Name() string

type FieldConfig

type FieldConfig struct {
	// contains filtered or unexported fields
}

func Field

func Field() *FieldConfig

func (*FieldConfig) GetPublic

func (c *FieldConfig) GetPublic(mode string) *bool

func (*FieldConfig) Name

func (c *FieldConfig) Name() string

func (*FieldConfig) SetPrivate

func (c *FieldConfig) SetPrivate(opts ...fieldConfigOption) *FieldConfig

func (*FieldConfig) SetPublic

func (c *FieldConfig) SetPublic(opts ...fieldConfigOption) *FieldConfig

type Modes

type Modes []string

func (Modes) IsGlobalOption

func (m Modes) IsGlobalOption()

func (Modes) IsOption

func (m Modes) IsOption()

Jump to

Keyboard shortcuts

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