package
1.1.0
Repository: https://github.com/stegoer/server.git
Documentation: pkg.go.dev

# Functions

BinaryBufferToBytes turns the data from bytes.Buffer into a slice of bytes.
BitToBool turns a bit into a bool.
BoolToBit turns a bool into a bit.
BoolToRune turns a bool into a rune.
ByteArrToBits turns given byteArr into bits and sends it over a channel.
BytesToUint64 turns []byte to uint64.
ClearBit clears the bit at pos in n.
EncodeNRGBA encodes given image.NRGBA into a bytes.Buffer.
FileToImageData reads file and returns ImageData.
GenerateToken created a jwt token and puts an ulid.ID into its claims.
GetUpdatedByte updates value byte with newBit byte on lsbPos byte.
HasBit returns whether the byte n has a bit set on the pos.
ImageToNRGBA converts image.Image to image.NRGBA.
NewAuthorizationError returns a new gqlerror.Error with authorization ErrorCode.
NewDBError returns a new gqlerror.Error with db ErrorCode.
NewInternalServerError returns a new gqlerror.Error with internalServer ErrorCode.
NewNotFoundError returns a new gqlerror.Error with notFound ErrorCode.
NewValidationError returns a new gqlerror.Error with validation ErrorCode.
ParseToken parses a jwt token and returns the ulid.ID in its claims.
ReadImageFile reads given file and returns image.Image.
SetBit sets the bit at pos in the integer n.
Trim trims src string with toTrim uint8.
Uint64ToBytes turns int to []byte representing uint64.

# Constants

No description provided by the author
Channel values.
Channel values.
Channel values.
Channel values.
Channel values.
Channel values.
Channel values.

# Structs

ImageData represents a data of an image.NRGBA and Width and Height.

# Type aliases

Channel defines the type for the "channel" enum field.
ErrorCode represents an error code.