micro

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

README

Koverto - Micro

Wraps go-micro as a base for gRPC server microservices.

Copyright © 2020 Jesse B. Hannah. Licensed under the GNU GPL version 3 or later.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	micro.Service
	Name string
	ID   string
}

Service represents a microservice definition.

func NewService

func NewService(id string, conf interface{}, sources ...source.Source) (*Service, error)

NewService initializes a new microservice instance with the given identifier (e.g. com.example.svc.greeter), and given a configuration struct containing default values, loads configuration values from the given sources into the struct.

Jump to

Keyboard shortcuts

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