Documentation
¶
Index ¶
- func ComputeClient(computepb *compute_pb.InternalComputeConfigInfo) (*compute_pb.ReturnComputeMessage, error)
- func NetworkClient(netconfpb *network_pb.InternalNetConfigInfo) (*network_pb.ReturnNetworkMessage, error)
- func TopologyClient(topopb *topology_pb.InternalTopologyInfo) (*topology_pb.ReturnTopologyMessage, error)
- type GrpcClient
- func (g GrpcClient) ComputeHandler(ctx context.Context, computepb *compute_pb.InternalComputeConfigInfo) (*compute_pb.ReturnComputeMessage, error)
- func (g GrpcClient) NetConfigHandler(ctx context.Context, netconfpb *network_pb.InternalNetConfigInfo) (*network_pb.ReturnNetworkMessage, error)
- func (g GrpcClient) TopologyHandler(ctx context.Context, topopb *topology_pb.InternalTopologyInfo) (*topology_pb.ReturnTopologyMessage, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeClient ¶
func ComputeClient(computepb *compute_pb.InternalComputeConfigInfo) (*compute_pb.ReturnComputeMessage, error)
func NetworkClient ¶
func NetworkClient(netconfpb *network_pb.InternalNetConfigInfo) (*network_pb.ReturnNetworkMessage, error)
func TopologyClient ¶
func TopologyClient(topopb *topology_pb.InternalTopologyInfo) (*topology_pb.ReturnTopologyMessage, error)
Types ¶
type GrpcClient ¶
type GrpcClient struct {
// contains filtered or unexported fields
}
func NewGrpcClient ¶
func NewGrpcClient(conn *grpc.ClientConn, timeout time.Duration) GrpcClient
func (GrpcClient) ComputeHandler ¶
func (g GrpcClient) ComputeHandler(ctx context.Context, computepb *compute_pb.InternalComputeConfigInfo) (*compute_pb.ReturnComputeMessage, error)
func (GrpcClient) NetConfigHandler ¶
func (g GrpcClient) NetConfigHandler(ctx context.Context, netconfpb *network_pb.InternalNetConfigInfo) (*network_pb.ReturnNetworkMessage, error)
func (GrpcClient) TopologyHandler ¶
func (g GrpcClient) TopologyHandler(ctx context.Context, topopb *topology_pb.InternalTopologyInfo) (*topology_pb.ReturnTopologyMessage, error)
Click to show internal directories.
Click to hide internal directories.