subscriptionid

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

type T string

T is an arbitrary string of 1-64 characters in length generated as a request or session identifier.

func New

func New(s string) (T, error)

New inspects a string and converts to T if it is valid. Invalid means length < 0 and <= 64 (hex encoded 256 bit hash).

func (T) IsValid

func (si T) IsValid() bool

IsValid returns true if the subscription id is between 1 and 64 characters. Invalid means too long or not present.

func (T) MarshalJSON

func (si T) MarshalJSON() (b []byte, err error)

func (T) String

func (si T) String() string

Jump to

Keyboard shortcuts

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