Documentation
¶
Index ¶
- Variables
- func BytesToInt64(b []byte) int64
- func BytesToTime(b []byte) time.Time
- func ContainsOneOfStrings(stack []string, needles []string) bool
- func ContainsString(stack []string, needle string) bool
- func Int64ToBytes(i int64) []byte
- func SplitAccount(act string) (username string, domain string, err error)
- func TimeToBytes(t time.Time) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAccountFormat = errors.New("invalid account format")
ErrInvalidAccountFormat is returned when a federated account is in an invalid format.
Functions ¶
func BytesToInt64 ¶ added in v0.12.0
func BytesToTime ¶ added in v0.12.0
func ContainsOneOfStrings ¶ added in v0.12.0
ContainsOneOfStrings will return true if any of a group of strings is found in a given group of strings.
func ContainsString ¶ added in v0.12.0
ContainsString will return true if a string is found in a given group of strings.
func Int64ToBytes ¶ added in v0.12.0
func SplitAccount ¶
SplitAccount splits a federated account into a username and domain.
func TimeToBytes ¶ added in v0.12.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.