micro

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

README

Koverto - Micro

Go

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

func ContextWithRequestID added in v1.1.0

func ContextWithRequestID(ctx context.Context, rid *uuid.UUID) context.Context

func RequestIDFromContext added in v1.1.0

func RequestIDFromContext(ctx context.Context) (*uuid.UUID, bool)

Types

type Service

type Service struct {
	micro.Service
	Name string
}

Service represents a microservice definition.

func NewService

func NewService(name 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