examplev1

package
v0.0.0-...-dd7e2e2 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExampleService_AddIPv4Address_FullMethodName = "/higebu.example.v1.ExampleService/AddIPv4Address"
	ExampleService_AddIPv6Address_FullMethodName = "/higebu.example.v1.ExampleService/AddIPv6Address"
	ExampleService_AddIPv4Route_FullMethodName   = "/higebu.example.v1.ExampleService/AddIPv4Route"
	ExampleService_AddIPv6Route_FullMethodName   = "/higebu.example.v1.ExampleService/AddIPv6Route"
)

Variables

View Source
var ExampleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "higebu.example.v1.ExampleService",
	HandlerType: (*ExampleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddIPv4Address",
			Handler:    _ExampleService_AddIPv4Address_Handler,
		},
		{
			MethodName: "AddIPv6Address",
			Handler:    _ExampleService_AddIPv6Address_Handler,
		},
		{
			MethodName: "AddIPv4Route",
			Handler:    _ExampleService_AddIPv4Route_Handler,
		},
		{
			MethodName: "AddIPv6Route",
			Handler:    _ExampleService_AddIPv6Route_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/example/v1/example.proto",
}

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

View Source
var File_proto_example_v1_example_proto protoreflect.FileDescriptor

Functions

func RegisterExampleServiceServer

func RegisterExampleServiceServer(s grpc.ServiceRegistrar, srv ExampleServiceServer)

Types

type AddIPv4AddressRequest

type AddIPv4AddressRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv4AddressRequest) Descriptor deprecated

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

Deprecated: Use AddIPv4AddressRequest.ProtoReflect.Descriptor instead.

func (*AddIPv4AddressRequest) GetAddress

func (x *AddIPv4AddressRequest) GetAddress() string

func (*AddIPv4AddressRequest) GetName

func (x *AddIPv4AddressRequest) GetName() string

func (*AddIPv4AddressRequest) ProtoMessage

func (*AddIPv4AddressRequest) ProtoMessage()

func (*AddIPv4AddressRequest) ProtoReflect

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

func (*AddIPv4AddressRequest) Reset

func (x *AddIPv4AddressRequest) Reset()

func (*AddIPv4AddressRequest) String

func (x *AddIPv4AddressRequest) String() string

type AddIPv4AddressResponse

type AddIPv4AddressResponse struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv4AddressResponse) Descriptor deprecated

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

Deprecated: Use AddIPv4AddressResponse.ProtoReflect.Descriptor instead.

func (*AddIPv4AddressResponse) GetAddress

func (x *AddIPv4AddressResponse) GetAddress() string

func (*AddIPv4AddressResponse) GetName

func (x *AddIPv4AddressResponse) GetName() string

func (*AddIPv4AddressResponse) ProtoMessage

func (*AddIPv4AddressResponse) ProtoMessage()

func (*AddIPv4AddressResponse) ProtoReflect

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

func (*AddIPv4AddressResponse) Reset

func (x *AddIPv4AddressResponse) Reset()

func (*AddIPv4AddressResponse) String

func (x *AddIPv4AddressResponse) String() string

type AddIPv4RouteRequest

type AddIPv4RouteRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Prefix  string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Nexthop string `protobuf:"bytes,3,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv4RouteRequest) Descriptor deprecated

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

Deprecated: Use AddIPv4RouteRequest.ProtoReflect.Descriptor instead.

func (*AddIPv4RouteRequest) GetName

func (x *AddIPv4RouteRequest) GetName() string

func (*AddIPv4RouteRequest) GetNexthop

func (x *AddIPv4RouteRequest) GetNexthop() string

func (*AddIPv4RouteRequest) GetPrefix

func (x *AddIPv4RouteRequest) GetPrefix() string

func (*AddIPv4RouteRequest) ProtoMessage

func (*AddIPv4RouteRequest) ProtoMessage()

func (*AddIPv4RouteRequest) ProtoReflect

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

func (*AddIPv4RouteRequest) Reset

func (x *AddIPv4RouteRequest) Reset()

func (*AddIPv4RouteRequest) String

func (x *AddIPv4RouteRequest) String() string

type AddIPv4RouteResponse

type AddIPv4RouteResponse struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Prefix  string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Nexthop string `protobuf:"bytes,3,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv4RouteResponse) Descriptor deprecated

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

Deprecated: Use AddIPv4RouteResponse.ProtoReflect.Descriptor instead.

func (*AddIPv4RouteResponse) GetName

func (x *AddIPv4RouteResponse) GetName() string

func (*AddIPv4RouteResponse) GetNexthop

func (x *AddIPv4RouteResponse) GetNexthop() string

func (*AddIPv4RouteResponse) GetPrefix

func (x *AddIPv4RouteResponse) GetPrefix() string

func (*AddIPv4RouteResponse) ProtoMessage

func (*AddIPv4RouteResponse) ProtoMessage()

func (*AddIPv4RouteResponse) ProtoReflect

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

func (*AddIPv4RouteResponse) Reset

func (x *AddIPv4RouteResponse) Reset()

func (*AddIPv4RouteResponse) String

func (x *AddIPv4RouteResponse) String() string

type AddIPv6AddressRequest

type AddIPv6AddressRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv6AddressRequest) Descriptor deprecated

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

Deprecated: Use AddIPv6AddressRequest.ProtoReflect.Descriptor instead.

func (*AddIPv6AddressRequest) GetAddress

func (x *AddIPv6AddressRequest) GetAddress() string

func (*AddIPv6AddressRequest) GetName

func (x *AddIPv6AddressRequest) GetName() string

func (*AddIPv6AddressRequest) ProtoMessage

func (*AddIPv6AddressRequest) ProtoMessage()

func (*AddIPv6AddressRequest) ProtoReflect

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

func (*AddIPv6AddressRequest) Reset

func (x *AddIPv6AddressRequest) Reset()

func (*AddIPv6AddressRequest) String

func (x *AddIPv6AddressRequest) String() string

type AddIPv6AddressResponse

type AddIPv6AddressResponse struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv6AddressResponse) Descriptor deprecated

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

Deprecated: Use AddIPv6AddressResponse.ProtoReflect.Descriptor instead.

func (*AddIPv6AddressResponse) GetAddress

func (x *AddIPv6AddressResponse) GetAddress() string

func (*AddIPv6AddressResponse) GetName

func (x *AddIPv6AddressResponse) GetName() string

func (*AddIPv6AddressResponse) ProtoMessage

func (*AddIPv6AddressResponse) ProtoMessage()

func (*AddIPv6AddressResponse) ProtoReflect

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

func (*AddIPv6AddressResponse) Reset

func (x *AddIPv6AddressResponse) Reset()

func (*AddIPv6AddressResponse) String

func (x *AddIPv6AddressResponse) String() string

type AddIPv6RouteRequest

type AddIPv6RouteRequest struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Prefix  string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Nexthop string `protobuf:"bytes,3,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv6RouteRequest) Descriptor deprecated

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

Deprecated: Use AddIPv6RouteRequest.ProtoReflect.Descriptor instead.

func (*AddIPv6RouteRequest) GetName

func (x *AddIPv6RouteRequest) GetName() string

func (*AddIPv6RouteRequest) GetNexthop

func (x *AddIPv6RouteRequest) GetNexthop() string

func (*AddIPv6RouteRequest) GetPrefix

func (x *AddIPv6RouteRequest) GetPrefix() string

func (*AddIPv6RouteRequest) ProtoMessage

func (*AddIPv6RouteRequest) ProtoMessage()

func (*AddIPv6RouteRequest) ProtoReflect

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

func (*AddIPv6RouteRequest) Reset

func (x *AddIPv6RouteRequest) Reset()

func (*AddIPv6RouteRequest) String

func (x *AddIPv6RouteRequest) String() string

type AddIPv6RouteResponse

type AddIPv6RouteResponse struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Prefix  string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Nexthop string `protobuf:"bytes,3,opt,name=nexthop,proto3" json:"nexthop,omitempty"`
	// contains filtered or unexported fields
}

func (*AddIPv6RouteResponse) Descriptor deprecated

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

Deprecated: Use AddIPv6RouteResponse.ProtoReflect.Descriptor instead.

func (*AddIPv6RouteResponse) GetName

func (x *AddIPv6RouteResponse) GetName() string

func (*AddIPv6RouteResponse) GetNexthop

func (x *AddIPv6RouteResponse) GetNexthop() string

func (*AddIPv6RouteResponse) GetPrefix

func (x *AddIPv6RouteResponse) GetPrefix() string

func (*AddIPv6RouteResponse) ProtoMessage

func (*AddIPv6RouteResponse) ProtoMessage()

func (*AddIPv6RouteResponse) ProtoReflect

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

func (*AddIPv6RouteResponse) Reset

func (x *AddIPv6RouteResponse) Reset()

func (*AddIPv6RouteResponse) String

func (x *AddIPv6RouteResponse) String() string

type ExampleServiceClient

type ExampleServiceClient interface {
	AddIPv4Address(ctx context.Context, in *AddIPv4AddressRequest, opts ...grpc.CallOption) (*AddIPv4AddressResponse, error)
	AddIPv6Address(ctx context.Context, in *AddIPv6AddressRequest, opts ...grpc.CallOption) (*AddIPv6AddressResponse, error)
	AddIPv4Route(ctx context.Context, in *AddIPv4RouteRequest, opts ...grpc.CallOption) (*AddIPv4RouteResponse, error)
	AddIPv6Route(ctx context.Context, in *AddIPv6RouteRequest, opts ...grpc.CallOption) (*AddIPv6RouteResponse, error)
}

ExampleServiceClient is the client API for ExampleService 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 ExampleServiceServer

type ExampleServiceServer interface {
	AddIPv4Address(context.Context, *AddIPv4AddressRequest) (*AddIPv4AddressResponse, error)
	AddIPv6Address(context.Context, *AddIPv6AddressRequest) (*AddIPv6AddressResponse, error)
	AddIPv4Route(context.Context, *AddIPv4RouteRequest) (*AddIPv4RouteResponse, error)
	AddIPv6Route(context.Context, *AddIPv6RouteRequest) (*AddIPv6RouteResponse, error)
	// contains filtered or unexported methods
}

ExampleServiceServer is the server API for ExampleService service. All implementations must embed UnimplementedExampleServiceServer for forward compatibility

type UnimplementedExampleServiceServer

type UnimplementedExampleServiceServer struct {
}

UnimplementedExampleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedExampleServiceServer) AddIPv4Address

func (UnimplementedExampleServiceServer) AddIPv4Route

func (UnimplementedExampleServiceServer) AddIPv6Address

func (UnimplementedExampleServiceServer) AddIPv6Route

type UnsafeExampleServiceServer

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

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

Jump to

Keyboard shortcuts

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