url

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ChannelNameMinLength = 1
View Source
const ClaimIdMaxLength = 40
View Source
const ProtoDefault = "lbry://"
View Source
const RegexClaimId = "(?i)^[0-9a-f]+$"
View Source
const RegexInvalidUri = "" /* 131-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type LbryUri

type LbryUri struct {
	Path                   string
	IsChannel              bool
	StreamName             string
	StreamClaimId          string
	ChannelName            string
	ChannelClaimId         string
	PrimaryClaimSequence   int
	SecondaryClaimSequence int
	PrimaryBidPosition     int
	SecondaryBidPosition   int
	ClaimName              string
	ClaimId                string
	ContentName            string
	QueryString            string
}

func Parse

func Parse(url string, requireProto bool) (*LbryUri, error)

func (LbryUri) Build

func (uri LbryUri) Build(includeProto bool, protocol string, vanity bool) string

func (LbryUri) IsChannelUrl

func (uri LbryUri) IsChannelUrl() bool

func (LbryUri) IsNameValid

func (uri LbryUri) IsNameValid(name string) bool

func (LbryUri) String

func (uri LbryUri) String() string

func (LbryUri) TvString

func (uri LbryUri) TvString() string

func (LbryUri) VanityString

func (uri LbryUri) VanityString() string

type UriModifier

type UriModifier struct {
	ClaimId       string
	ClaimSequence int
	BidPosition   int
}

Jump to

Keyboard shortcuts

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