module

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const PocketbaseModule = "github.com/pocketbase/pocketbase"
View Source
const XpbModule = "github.com/pocketbuilds/xpb"

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	Module      string `json:"module"`
	Version     string `json:"version"`
	Replacement string `json:"replacement"`
}

func NewModule

func NewModule(opts ...ModuleOption) (*Module, error)

func (*Module) IsPocketbase

func (m *Module) IsPocketbase() bool

func (*Module) IsXpb

func (m *Module) IsXpb() bool

func (Module) String added in v0.0.5

func (m Module) String() string

func (Module) Validate

func (m Module) Validate() error

type ModuleOption

type ModuleOption func(m *Module) error

func FromCliArg

func FromCliArg(arg string) ModuleOption

func FromJsonBytes

func FromJsonBytes(data []byte) ModuleOption

func FromJsonReader

func FromJsonReader(r io.Reader) ModuleOption

func FromJsonString

func FromJsonString(data string) ModuleOption

func WithModule

func WithModule(module string) ModuleOption

func WithPocketbaseModule

func WithPocketbaseModule() ModuleOption

func WithReplacement

func WithReplacement(replacement string) ModuleOption

func WithVersion

func WithVersion(version string) ModuleOption

func WithXpbModule

func WithXpbModule() ModuleOption

Jump to

Keyboard shortcuts

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