echool

package module
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

README

go-echool

Build Status

A gRpc development framework, supporting etcd and Consul as the service register/discovery.

examples

All examples at go-echool-examples.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcClient

type GrpcClient struct {
	// contains filtered or unexported fields
}

GrpcClient ...

func NewClient

func NewClient(target string) *GrpcClient

NewClient ...

func (*GrpcClient) GetConnection

func (c *GrpcClient) GetConnection(options ...grpc.DialOption) (*grpc.ClientConn, error)

GetConnection ...

type GrpcServer

type GrpcServer struct {
	// contains filtered or unexported fields
}

GrpcServer ...

func NewServer

func NewServer(discovery sd.Register, serviceFunc ServiceFunc) *GrpcServer

NewServer ...

func (*GrpcServer) Run

func (s *GrpcServer) Run(serverOptions ...grpc.ServerOption) error

Run ...

type ServiceFunc

type ServiceFunc func(server *grpc.Server)

ServiceFunc ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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