package
0.2.2
Repository: https://github.com/obitech/micro-obs.git
Documentation: pkg.go.dev

# Functions

DataToItems takes a JSON-encoded byte array and marshals it into a list of item.Items.
NewItem creates a new item where the ID becomes the HashID of the lowercase name.
NewRedisClient creates a new go-redis/redis client according to passed options.
NewResponse returns a Response with a passed message string and slice of Data.
NewServer creates a new Server according to options.
SetLogLevel sets the log level to either debug, warn, error or info.
SetRedisAddress sets a custom address for the redis connection.
SetServerAddress sets the server address.
SetServerEndpoint sets the server endpoint address for other services to call it.
UnmarshalRedis parses a passed string and map into an Item.

# Structs

Item defines a shop item with attributes.
Response defines an API response.
Server is a wrapper for a HTTP server, with dependencies attached.

# Type aliases

ServerOptions sets options when creating a new server.