grpc package - github.com/zoncoen/scenarigo/mock/protocol/grpc - Go Packages

grpc

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register registers grpc protocol.

Types

type GRPC

type GRPC struct{}

GRPC is a protocol type for the mock.

func (GRPC) Name

func (_ GRPC) Name() string

Name implements protocol.Protocol interface.

func (*GRPC) NewServer

func (_ *GRPC) NewServer(iter *protocol.MockIterator, l logger.Logger, config interface{}) (protocol.Server, error)

NewServer implements protocol.Protocol interface.

func (GRPC) UnmarshalConfig

func (_ GRPC) UnmarshalConfig(b []byte) (interface{}, error)

UnmarshalConfig implements protocol.Protocol interface.

type ProtoConfig

type ProtoConfig struct {
	Imports []string `yaml:"imports,omitempty"`
	Files   []string `yaml:"files,omitempty"`
}

ProtoConfig represents a proto configuration.

type Response

type Response grpcprotocol.Expect

Response represents an gRPC response.

type ServerConfig

type ServerConfig struct {
	Port  int         `yaml:"port,omitempty"`
	Proto ProtoConfig `yaml:"proto,omitempty"`
}

ServerConfig represents a server configuration.

Jump to

Keyboard shortcuts

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