edgeservice

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	GwEdgeService_UpdateSliceGwServiceMap_FullMethodName = "/edgeservice.GwEdgeService/UpdateSliceGwServiceMap"
)

Variables

View Source
var File_edgeservice_edgeservice_proto protoreflect.FileDescriptor
View Source
var GwEdgeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "edgeservice.GwEdgeService",
	HandlerType: (*GwEdgeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateSliceGwServiceMap",
			Handler:    _GwEdgeService_UpdateSliceGwServiceMap_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "edgeservice/edgeservice.proto",
}

GwEdgeService_ServiceDesc is the grpc.ServiceDesc for GwEdgeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGwEdgeServiceServer

func RegisterGwEdgeServiceServer(s grpc.ServiceRegistrar, srv GwEdgeServiceServer)

Types

type GwEdgeResponse

type GwEdgeResponse struct {
	StatusMsg string `protobuf:"bytes,1,opt,name=statusMsg,proto3" json:"statusMsg,omitempty"`
	// contains filtered or unexported fields
}

GwEdgeResponse represents the Sidecar response format.

func (*GwEdgeResponse) Descriptor deprecated

func (*GwEdgeResponse) Descriptor() ([]byte, []int)

Deprecated: Use GwEdgeResponse.ProtoReflect.Descriptor instead.

func (*GwEdgeResponse) GetStatusMsg

func (x *GwEdgeResponse) GetStatusMsg() string

func (*GwEdgeResponse) ProtoMessage

func (*GwEdgeResponse) ProtoMessage()

func (*GwEdgeResponse) ProtoReflect

func (x *GwEdgeResponse) ProtoReflect() protoreflect.Message

func (*GwEdgeResponse) Reset

func (x *GwEdgeResponse) Reset()

func (*GwEdgeResponse) String

func (x *GwEdgeResponse) String() string

type GwEdgeService

type GwEdgeService struct {
	UnimplementedGwEdgeServiceServer
}

func (*GwEdgeService) UpdateSliceGwServiceMap

func (s *GwEdgeService) UpdateSliceGwServiceMap(ctx context.Context, in *SliceGwServiceMap) (*GwEdgeResponse, error)

type GwEdgeServiceClient

type GwEdgeServiceClient interface {
	// Interface to get slice gateway service info
	UpdateSliceGwServiceMap(ctx context.Context, in *SliceGwServiceMap, opts ...grpc.CallOption) (*GwEdgeResponse, error)
}

GwEdgeServiceClient is the client API for GwEdgeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GwEdgeServiceServer

type GwEdgeServiceServer interface {
	// Interface to get slice gateway service info
	UpdateSliceGwServiceMap(context.Context, *SliceGwServiceMap) (*GwEdgeResponse, error)
	// contains filtered or unexported methods
}

GwEdgeServiceServer is the server API for GwEdgeService service. All implementations must embed UnimplementedGwEdgeServiceServer for forward compatibility

type SliceGwServiceInfo

type SliceGwServiceInfo struct {
	GwName          string `protobuf:"bytes,1,opt,name=GwName,proto3" json:"GwName,omitempty"`
	GwSvcName       string `protobuf:"bytes,2,opt,name=GwSvcName,proto3" json:"GwSvcName,omitempty"`
	GwSvcClusterIP  string `protobuf:"bytes,3,opt,name=GwSvcClusterIP,proto3" json:"GwSvcClusterIP,omitempty"`
	GwSvcTargetPort uint32 `protobuf:"varint,4,opt,name=GwSvcTargetPort,proto3" json:"GwSvcTargetPort,omitempty"`
	GwSvcNodePort   uint32 `protobuf:"varint,5,opt,name=GwSvcNodePort,proto3" json:"GwSvcNodePort,omitempty"`
	GwSvcProtocol   string `protobuf:"bytes,6,opt,name=GwSvcProtocol,proto3" json:"GwSvcProtocol,omitempty"`
	// contains filtered or unexported fields
}

func (*SliceGwServiceInfo) Descriptor deprecated

func (*SliceGwServiceInfo) Descriptor() ([]byte, []int)

Deprecated: Use SliceGwServiceInfo.ProtoReflect.Descriptor instead.

func (*SliceGwServiceInfo) GetGwName

func (x *SliceGwServiceInfo) GetGwName() string

func (*SliceGwServiceInfo) GetGwSvcClusterIP

func (x *SliceGwServiceInfo) GetGwSvcClusterIP() string

func (*SliceGwServiceInfo) GetGwSvcName

func (x *SliceGwServiceInfo) GetGwSvcName() string

func (*SliceGwServiceInfo) GetGwSvcNodePort

func (x *SliceGwServiceInfo) GetGwSvcNodePort() uint32

func (*SliceGwServiceInfo) GetGwSvcProtocol

func (x *SliceGwServiceInfo) GetGwSvcProtocol() string

func (*SliceGwServiceInfo) GetGwSvcTargetPort

func (x *SliceGwServiceInfo) GetGwSvcTargetPort() uint32

func (*SliceGwServiceInfo) ProtoMessage

func (*SliceGwServiceInfo) ProtoMessage()

func (*SliceGwServiceInfo) ProtoReflect

func (x *SliceGwServiceInfo) ProtoReflect() protoreflect.Message

func (*SliceGwServiceInfo) Reset

func (x *SliceGwServiceInfo) Reset()

func (*SliceGwServiceInfo) String

func (x *SliceGwServiceInfo) String() string

type SliceGwServiceMap

type SliceGwServiceMap struct {
	SliceName          string                `protobuf:"bytes,1,opt,name=sliceName,proto3" json:"sliceName,omitempty"`
	SliceGwServiceList []*SliceGwServiceInfo `protobuf:"bytes,2,rep,name=sliceGwServiceList,proto3" json:"sliceGwServiceList,omitempty"`
	// contains filtered or unexported fields
}

func (*SliceGwServiceMap) Descriptor deprecated

func (*SliceGwServiceMap) Descriptor() ([]byte, []int)

Deprecated: Use SliceGwServiceMap.ProtoReflect.Descriptor instead.

func (*SliceGwServiceMap) GetSliceGwServiceList

func (x *SliceGwServiceMap) GetSliceGwServiceList() []*SliceGwServiceInfo

func (*SliceGwServiceMap) GetSliceName

func (x *SliceGwServiceMap) GetSliceName() string

func (*SliceGwServiceMap) ProtoMessage

func (*SliceGwServiceMap) ProtoMessage()

func (*SliceGwServiceMap) ProtoReflect

func (x *SliceGwServiceMap) ProtoReflect() protoreflect.Message

func (*SliceGwServiceMap) Reset

func (x *SliceGwServiceMap) Reset()

func (*SliceGwServiceMap) String

func (x *SliceGwServiceMap) String() string

type UnimplementedGwEdgeServiceServer

type UnimplementedGwEdgeServiceServer struct {
}

UnimplementedGwEdgeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGwEdgeServiceServer) UpdateSliceGwServiceMap

type UnsafeGwEdgeServiceServer

type UnsafeGwEdgeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGwEdgeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GwEdgeServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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