Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct { Controller controller.Controller Log zerolog.Logger // contains filtered or unexported fields }
Service represents a RPC service.
func NewService ¶
NewService returns a configured service with a controller and a default logger. When used as a library, flags are not parsed, and in order to avoid introducing a global state with init functions calls are done explicitly to loadFromEnv(). Since this is the public constructor, options need to be added, at the moment only logging options are supported in order to match the running OwnCloud services structured log.
Click to show internal directories.
Click to hide internal directories.