server

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package server provides RESTful and gRPC API

Index

Constants

This section is empty.

Variables

View Source
var DefaultPort = 2333

Functions

This section is empty.

Types

type Config added in v0.1.0

type Config struct {
	Http http.Config            `yaml:"http" json:"http"`
	Grpc grpc.Config            `yaml:"grpc" json:"grpc"`
	XXX  map[string]interface{} `yaml:",inline"`
}

func NewConfig added in v0.1.0

func NewConfig() Config

func (*Config) Apply added in v0.1.0

func (c *Config) Apply() error

func (*Config) UnmarshalYAML added in v0.1.0

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

func (*Config) Validate added in v0.1.0

func (c *Config) Validate() error

Directories

Path Synopsis
Package payload is a generated protocol buffer package.
Package payload is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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