grpc

package
v1.11.0-cni-plu...-6617031 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0, Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcDataplane

func NewGrpcDataplane(conf types.NetConf, logger *logrus.Entry) (*grpcDataplane, error)

Types

type TestServer

type TestServer struct {
	Received chan interface{}
	// contains filtered or unexported fields
}

func StartTestServer

func StartTestServer(socket string, retval bool, contMac string) (s *TestServer, err error)

func (*TestServer) Add

func (s *TestServer) Add(ctx context.Context, in *pb.AddRequest) (*pb.AddReply, error)

func (*TestServer) Del

func (s *TestServer) Del(ctx context.Context, in *pb.DelRequest) (*pb.DelReply, error)

func (*TestServer) GracefulStop

func (s *TestServer) GracefulStop()

func (*TestServer) SetResult

func (s *TestServer) SetResult(r bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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