Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServerConfig ¶
func NewServerConfig() serverConfig
NewServerConfig constructs a serverConfig with all the defaults set.
Types ¶
type KioraServer ¶
type KioraServer struct {
// contains filtered or unexported fields
}
KioraServer is a server that serves the main Kiora API.
func NewKioraServer ¶
func NewKioraServer(conf serverConfig, db kioradb.DB) (*KioraServer, error)
func (*KioraServer) ListenAndServe ¶
func (k *KioraServer) ListenAndServe() error
ListenAndServe starts the server, using TLS if set in the config. This method blocks until the server ends.
func (*KioraServer) Shutdown ¶
func (k *KioraServer) Shutdown()
Click to show internal directories.
Click to hide internal directories.