providerid

package
v0.0.0-...-478ad6c Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidProviderID = errors.New("invalid provider/id pair")

Functions

This section is empty.

Types

type ProviderID

type ProviderID struct {
	Provider string
	ID       string
}

func MustParse

func MustParse(s string) ProviderID

func New

func New(provider, id string) (ProviderID, error)

func Parse

func Parse(s string) (ProviderID, error)

func (*ProviderID) IsValid

func (pid *ProviderID) IsValid() bool

func (*ProviderID) MarshalText

func (pid *ProviderID) MarshalText() (text []byte, err error)

func (*ProviderID) String

func (pid *ProviderID) String() string

func (*ProviderID) UnmarshalText

func (pid *ProviderID) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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