Documentation ¶
Index ¶
- Constants
- func AddToManyToManyPlus(env *beldilib.Env, newId string, setup referenceNavigationListSetupPlus) error
- func AreInstancesAlreadyCreatedPlus(env *beldilib.Env, param LoadBatchParam) error
- func DeleteBatchFromManyToManyPlus(env *beldilib.Env, toDelete []string, setup referenceNavigationListSetupPlus) error
- func DeletePlus[T Nobject](env *beldilib.Env, id string) error
- func DeleteWithTypeNameAsArgPlus(id, typeName string) error
- func ExportPlus[T Nobject](env *beldilib.Env, objToInsert Nobject) (*T, error)
- func GetFieldOfTypePlus[N any](env *beldilib.Env, param GetStateParam, field *N) error
- func GetFieldPlus(env *beldilib.Env, param GetStateParam) (interface{}, error)
- func GetIdsPlus(env *beldilib.Env, setup referenceNavigationListSetupPlus) ([]string, error)
- func GetStubPlus[T Nobject](env *beldilib.Env, id string, object *T) error
- func GetStubWithTypeNameAsArgPlus(env *beldilib.Env, id, typeName string) (map[string]interface{}, error)
- func GetStubsInBatchPlus[T Nobject](env *beldilib.Env, ids []string) ([]*T, error)
- func GetStubsInBatchWithTypeNameAsArgPlus(env *beldilib.Env, param GetBatchParam) ([]interface{}, error)
- func InsertPlus(env *beldilib.Env, objToInsert Nobject) (interface{}, error)
- func IsInstanceAlreadyCreatedPlus(env *beldilib.Env, param IsInstanceAlreadyCreatedParam) (bool, error)
- func LoadBatchPlus[T Nobject](env *beldilib.Env, ids []string) ([]*T, error)
- func LoadPlus[T Nobject](env *beldilib.Env, id string) (*T, error)
- func SetFieldPlus(env *beldilib.Env, param SetFieldParam) error
- func UpsertPlus(env *beldilib.Env, objToInsert Nobject, id string) (interface{}, error)
- type AddToManyToManyParam
- type CustomId
- type DeleteFromManyToManyParam
- type GetBatchParam
- type GetStateParam
- type HandlerParameters
- type IsInstanceAlreadyCreatedParam
- type LoadBatchParam
- type ManyToMany
- type Nobject
- type NotFoundError
- type QueryByIndexParam
- type QueryByPartitionKeyParam
- type Reference
- type ReferenceList
- func (r ReferenceList[T]) Get(env *beldilib.Env) ([]*T, error)
- func (r ReferenceList[T]) GetAt(env *beldilib.Env, index int) (*T, error)
- func (r ReferenceList[T]) GetIds() []string
- func (r ReferenceList[T]) GetStubAt(env *beldilib.Env, index int) (*T, error)
- func (r ReferenceList[T]) GetStubs(env *beldilib.Env) ([]*T, error)
- type ReferenceNavigationListHandlersPlus
- func (r ReferenceNavigationListHandlersPlus) AddToManyToManyPlus(env *beldilib.Env, newId string) error
- func (r ReferenceNavigationListHandlersPlus) DeleteBatchFromManyToManyPlus(env *beldilib.Env, toDelete []string) error
- func (r ReferenceNavigationListHandlersPlus) GetIdsPlus(env *beldilib.Env) ([]string, error)
- func (r ReferenceNavigationListHandlersPlus) GetPlus(env *beldilib.Env) ([]string, error)
- func (r ReferenceNavigationListHandlersPlus) GetStubsPlus(env *beldilib.Env) ([]interface{}, error)
- type ReferenceNavigationListParam
- type ReferenceNavigationListPlus
- func (r ReferenceNavigationListPlus[T]) AddToManyToManyPlus(env *beldilib.Env, newId string, setup referenceNavigationListSetupPlus) error
- func (r ReferenceNavigationListPlus[T]) DeleteBatchFromManyToManyPlus(env *beldilib.Env, toDelete []string) error
- func (r ReferenceNavigationListPlus[T]) GetIdsPlus(env *beldilib.Env) ([]string, error)
- func (r ReferenceNavigationListPlus[T]) GetPlus(env *beldilib.Env) ([]*T, error)
- func (r ReferenceNavigationListPlus[T]) GetStubsPlus(env *beldilib.Env) ([]*T, error)
- type SetFieldParam
Constants ¶
View Source
const (
ReferencedIdsParam = "referencedIds"
)
Variables ¶
This section is empty.
Functions ¶
func AddToManyToManyPlus ¶
func AreInstancesAlreadyCreatedPlus ¶
func AreInstancesAlreadyCreatedPlus(env *beldilib.Env, param LoadBatchParam) error
func GetFieldOfTypePlus ¶
func GetFieldOfTypePlus[N any](env *beldilib.Env, param GetStateParam, field *N) error
func GetFieldPlus ¶
func GetFieldPlus(env *beldilib.Env, param GetStateParam) (interface{}, error)
func GetIdsPlus ¶
func GetStubsInBatchPlus ¶
func GetStubsInBatchWithTypeNameAsArgPlus ¶
func GetStubsInBatchWithTypeNameAsArgPlus(env *beldilib.Env, param GetBatchParam) ([]interface{}, error)
this needs to be in transaction
func IsInstanceAlreadyCreatedPlus ¶
func IsInstanceAlreadyCreatedPlus(env *beldilib.Env, param IsInstanceAlreadyCreatedParam) (bool, error)
func SetFieldPlus ¶
func SetFieldPlus(env *beldilib.Env, param SetFieldParam) error
Types ¶
type AddToManyToManyParam ¶
type AddToManyToManyParam struct { NewId string }
func (AddToManyToManyParam) Verify ¶
func (a AddToManyToManyParam) Verify() error
type DeleteFromManyToManyParam ¶
type DeleteFromManyToManyParam struct { IdsToDelete []string }
func (DeleteFromManyToManyParam) Verify ¶
func (a DeleteFromManyToManyParam) Verify() error
type GetBatchParam ¶
func (GetBatchParam) Validate ¶
func (q GetBatchParam) Validate() error
type GetStateParam ¶
func (GetStateParam) Validate ¶
func (s GetStateParam) Validate() error
type HandlerParameters ¶
type LoadBatchParam ¶
func (LoadBatchParam) Verify ¶
func (l LoadBatchParam) Verify() error
type ManyToMany ¶
type NotFoundError ¶
func (NotFoundError) Error ¶
func (m NotFoundError) Error() string
type QueryByIndexParam ¶
type QueryByIndexParam struct { TableName string IndexName string KeyAttributeName string KeyAttributeValue string OutputAttributeName string }
func (QueryByIndexParam) Validate ¶
func (q QueryByIndexParam) Validate() error
type QueryByPartitionKeyParam ¶
type QueryByPartitionKeyParam struct { TableName string PartitionAttributeName string PatritionAttributeValue string OutputAttributeName string }
func (QueryByPartitionKeyParam) Validate ¶
func (q QueryByPartitionKeyParam) Validate() error
type Reference ¶
func NewReference ¶
type ReferenceList ¶
func NewReferenceList ¶
func NewReferenceList[T Nobject](ids []string) ReferenceList[T]
func (ReferenceList[T]) GetAt ¶
func (r ReferenceList[T]) GetAt(env *beldilib.Env, index int) (*T, error)
func (ReferenceList[T]) GetIds ¶
func (r ReferenceList[T]) GetIds() []string
type ReferenceNavigationListHandlersPlus ¶
type ReferenceNavigationListHandlersPlus struct {
// contains filtered or unexported fields
}
func NewReferenceNavigationListHandlersPlus ¶
func NewReferenceNavigationListHandlersPlus(param ReferenceNavigationListParam) *ReferenceNavigationListHandlersPlus
func (ReferenceNavigationListHandlersPlus) AddToManyToManyPlus ¶
func (r ReferenceNavigationListHandlersPlus) AddToManyToManyPlus(env *beldilib.Env, newId string) error
func (ReferenceNavigationListHandlersPlus) DeleteBatchFromManyToManyPlus ¶
func (r ReferenceNavigationListHandlersPlus) DeleteBatchFromManyToManyPlus(env *beldilib.Env, toDelete []string) error
func (ReferenceNavigationListHandlersPlus) GetIdsPlus ¶
func (r ReferenceNavigationListHandlersPlus) GetIdsPlus(env *beldilib.Env) ([]string, error)
func (ReferenceNavigationListHandlersPlus) GetPlus ¶
func (r ReferenceNavigationListHandlersPlus) GetPlus(env *beldilib.Env) ([]string, error)
func (ReferenceNavigationListHandlersPlus) GetStubsPlus ¶
func (r ReferenceNavigationListHandlersPlus) GetStubsPlus(env *beldilib.Env) ([]interface{}, error)
type ReferenceNavigationListParam ¶
type ReferenceNavigationListParam struct {}
func (ReferenceNavigationListParam) Verify ¶
func (l ReferenceNavigationListParam) Verify() error
type ReferenceNavigationListPlus ¶
type ReferenceNavigationListPlus[T Nobject] struct { // contains filtered or unexported fields }
func NewReferenceNavigationListPlus ¶
func NewReferenceNavigationListPlus[T Nobject](param ReferenceNavigationListParam) *ReferenceNavigationListPlus[T]
func (ReferenceNavigationListPlus[T]) AddToManyToManyPlus ¶
func (r ReferenceNavigationListPlus[T]) AddToManyToManyPlus(env *beldilib.Env, newId string, setup referenceNavigationListSetupPlus) error
func (ReferenceNavigationListPlus[T]) DeleteBatchFromManyToManyPlus ¶
func (r ReferenceNavigationListPlus[T]) DeleteBatchFromManyToManyPlus(env *beldilib.Env, toDelete []string) error
func (ReferenceNavigationListPlus[T]) GetIdsPlus ¶
func (r ReferenceNavigationListPlus[T]) GetIdsPlus(env *beldilib.Env) ([]string, error)
func (ReferenceNavigationListPlus[T]) GetPlus ¶
func (r ReferenceNavigationListPlus[T]) GetPlus(env *beldilib.Env) ([]*T, error)
func (ReferenceNavigationListPlus[T]) GetStubsPlus ¶
func (r ReferenceNavigationListPlus[T]) GetStubsPlus(env *beldilib.Env) ([]*T, error)
type SetFieldParam ¶
func (SetFieldParam) Validate ¶
func (s SetFieldParam) Validate() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.