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

# Functions

NewItem creates a new Item from an existing Item.
NewOrder creates a new order according to arguments.
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.
SetItemServiceAddress sets the address to reach the Item service.
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 string and map into an Order.

# Structs

Item holds stripped down information of a regular item, to be used in an Order.
Order defines a placed order with identifier and items.
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.