server

package
v0.0.0-...-9c1c390 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(a *app.App, c *Config)

Create provides initialization of server

Types

type Config

type Config struct {
	Address string
}

Config defines configuration for server start

type Error

type Error struct {
	StatusCode int    `json:"status_code"`
	Message    string `json:"message"`
	Additional string `json:"additional"`
}

Error defines the struct for response on the error case

type Request

type Request struct {
	Level   string   `json:"level"`
	Message string   `json:"message"`
	Name    string   `json:"name"`
	Labels  []string `json:"labels"`
	Entry   string   `json:"entry"`
	Service string   `json:"service"`
}

Request defines log payload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL