Documentation ¶
Index ¶
Constants ¶
View Source
const NameChars = `[a-zA-Z0-9][a-zA-Z0-9_-]`
Variables ¶
View Source
var (
EmptyCursorEvents = CursorEvents("")
)
View Source
var NamePattern = regexp.MustCompile(`^/?` + NameChars + `+$`)
View Source
var NameSeparator = `.`
View Source
var SpecialNamePattern = regexp. MustCompile( "^(?P<channel>" + NameChars + "+)?" + NameSeparator + "?" + "(?P<thread>" + NameChars + "+)?$", )
Functions ¶
func DecodeBase64 ¶
Types ¶
type CursorEvents ¶
type CursorEvents string
func NewCursorEvents ¶
func NewCursorEvents(str string) CursorEvents
func NewCursorEventsFromEvent ¶
func NewCursorEventsFromEvent(e hey.Event) CursorEvents
func NewCursorFromSource ¶
func NewCursorFromSource(eventID uuid.UUID, createdAt time.Time) CursorEvents
func (CursorEvents) LastCreatedAt ¶
func (c CursorEvents) LastCreatedAt() time.Time
func (CursorEvents) LastEventID ¶
func (c CursorEvents) LastEventID() uuid.UUID
func (CursorEvents) String ¶
func (c CursorEvents) String() string
type SpecialName ¶
type SpecialName string
func (SpecialName) Channel ¶
func (s SpecialName) Channel() string
func (SpecialName) Thread ¶
func (s SpecialName) Thread() string
func (SpecialName) Valid ¶
func (s SpecialName) Valid() bool
Click to show internal directories.
Click to hide internal directories.