pkg

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment added in v0.1.29

type Environment struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*Environment) SetFromSchemaEnvironment added in v0.1.31

func (e *Environment) SetFromSchemaEnvironment(v EnvironmentSchema) error

func (Environment) ToSchemaEnvironment added in v0.1.31

func (e Environment) ToSchemaEnvironment() EnvironmentSchema

type EnvironmentSchema added in v0.1.31

type EnvironmentSchema struct {
	Name  string
	Value string
}

type Environments added in v0.1.29

type Environments []Environment

type GetShopAdditionals added in v0.1.31

type GetShopAdditionals struct {
	AdditionalProperties map[string]any
}

type Maybe added in v0.1.29

type Maybe[T any] struct {
	IsSet bool
	Value T
}

func Just added in v0.1.29

func Just[T any](v T) Maybe[T]

func Nothing added in v0.1.29

func Nothing[T any]() Maybe[T]

func (Maybe[T]) Get added in v0.1.29

func (m Maybe[T]) Get() (zero T, _ bool)

func (*Maybe[T]) Set added in v0.1.29

func (m *Maybe[T]) Set(v T)

type Metadata added in v0.1.29

type Metadata struct {
	InternalID string
	OK         bool
}

func (*Metadata) SetFromSchemaMetadata added in v0.1.31

func (m *Metadata) SetFromSchemaMetadata(v MetadataSchema) error

func (Metadata) ToSchemaMetadata added in v0.1.31

func (m Metadata) ToSchemaMetadata() MetadataSchema

type MetadataSchema added in v0.1.31

type MetadataSchema struct {
	InnerID Maybe[string]
}

type Nullable added in v0.1.29

type Nullable[T any] struct {
	IsSet bool
	Value T
}

func Null added in v0.1.29

func Null[T any]() Nullable[T]

func Pointer added in v0.1.29

func Pointer[T any](v T) Nullable[T]

func (Nullable[T]) Get added in v0.1.29

func (m Nullable[T]) Get() (zero T, _ bool)

func (*Nullable[T]) Set added in v0.1.29

func (m *Nullable[T]) Set(v T)

type Page

type Page string

func (*Page) ParseString added in v0.1.15

func (s *Page) ParseString(v string) error

func (Page) String

func (s Page) String() string

type PageCustomTypeQuery

type PageCustomTypeQuery string

func (*PageCustomTypeQuery) ParseString added in v0.1.15

func (s *PageCustomTypeQuery) ParseString(v string) error

func (PageCustomTypeQuery) String

func (s PageCustomTypeQuery) String() string

type Settings added in v0.1.29

type Settings struct {
	Theme Maybe[string] `json:"theme"`
}

func (*Settings) SetFromSchemaGetShopAdditionals added in v0.1.31

func (s *Settings) SetFromSchemaGetShopAdditionals(v GetShopAdditionals) error

func (*Settings) SetFromSchemaSettings added in v0.1.31

func (s *Settings) SetFromSchemaSettings(v SettingsSchema) error

func (Settings) ToSchemaGetShopAdditionals added in v0.1.31

func (s Settings) ToSchemaGetShopAdditionals() GetShopAdditionals

func (Settings) ToSchemaSettings added in v0.1.31

func (s Settings) ToSchemaSettings() SettingsSchema

type SettingsSchema added in v0.1.31

type SettingsSchema struct {
	Theme Maybe[string]
}

type Shop added in v0.1.23

type Shop string

func (*Shop) ParseString added in v0.1.23

func (s *Shop) ParseString(str string) error

func (Shop) String added in v0.1.23

func (s Shop) String() string

Jump to

Keyboard shortcuts

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