config

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v1.1.0

func Create(ctx context.Context, id types.SFID, c wasm.Configuration) (*models.Config, error)

func GetByRelAndType added in v1.1.0

func GetByRelAndType(ctx context.Context, id types.SFID, t enums.ConfigType) (*models.Config, error)

func GetBySFID added in v1.1.0

func GetBySFID(ctx context.Context, id types.SFID) (*models.Config, error)

func GetValueByRelAndType added in v1.1.0

func GetValueByRelAndType(ctx context.Context, rel types.SFID, t enums.ConfigType) (wasm.Configuration, error)

func GetValueBySFID added in v1.1.0

func GetValueBySFID(ctx context.Context, id types.SFID) (wasm.Configuration, error)

func Marshal added in v1.1.0

func Marshal(c wasm.Configuration) (data []byte, err error)

func Remove added in v1.1.0

func Remove(ctx context.Context, r *CondArgs) error

func Unmarshal added in v1.1.0

func Unmarshal(data []byte, typ enums.ConfigType) (c wasm.Configuration, err error)

func Upsert added in v1.1.0

func Upsert(ctx context.Context, rel types.SFID, c wasm.Configuration) (*models.Config, error)

Types

type CondArgs added in v1.1.0

type CondArgs struct {
	ConfigIDs []types.SFID
	RelIDs    []types.SFID
	Types     []enums.ConfigType
}

func (*CondArgs) Condition added in v1.1.0

func (r *CondArgs) Condition() builder.SqlCondition

type Detail added in v1.1.0

type Detail struct {
	RelID types.SFID
	wasm.Configuration
}

func List added in v1.1.0

func List(ctx context.Context, r *CondArgs) ([]*Detail, error)

func (*Detail) Log added in v1.1.0

func (d *Detail) Log(err error) string

func (*Detail) String added in v1.1.0

func (d *Detail) String() string

Jump to

Keyboard shortcuts

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