Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GRPC ¶
type GRPC struct{}
GRPC is a protocol type for the mock.
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 ¶
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 ServerConfig ¶
type ServerConfig struct {
Port int `yaml:"port,omitempty"`
Proto ProtoConfig `yaml:"proto,omitempty"`
}
ServerConfig represents a server configuration.
Click to show internal directories.
Click to hide internal directories.