grpcexec

package
v0.0.0-...-93c8805 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMockServer

func CreateMockServer(fx Fixture) (net.Listener, *grpc.Server)

func New

func New(opt ...Option) *service

Types

type Config

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

Config extend grpc client for enhance opt use Option which you should write inside this package ;)

type Fixture

type Fixture struct {
	Err error
	Res *helloworld.HelloReply

	CB func(*helloworld.HelloRequest)
}

type MockServer

type MockServer struct {
	helloworld.UnimplementedGreeterServer
	Fixture
}

func (MockServer) SayHello

type Option

type Option func(*Config)

Option dynamically change any internal requirements

type Path

type Path struct {
	Package string `json:"package" yaml:"package"`

	Service string `json:"service" yaml:"service"`

	// RPC actually function in service which we are calling
	RPC string `json:"rpc" yaml:"rpc"`
}

@symbol: {package}.{service}/{rpc}

func (*Path) String

func (g *Path) String() string

Jump to

Keyboard shortcuts

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