api

package
v0.0.0-...-8fd779a Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Peerings_CreateOrUpdate_FullMethodName = "/peerings.Peerings/CreateOrUpdate"
	Peerings_List_FullMethodName           = "/peerings.Peerings/List"
	Peerings_Get_FullMethodName            = "/peerings.Peerings/Get"
	Peerings_Delete_FullMethodName         = "/peerings.Peerings/Delete"
)

Variables

View Source
var File_plugin_pkg_services_peerings_api_peerings_proto protoreflect.FileDescriptor
View Source
var Peerings_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "peerings.Peerings",
	HandlerType: (*PeeringsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateOrUpdate",
			Handler:    _Peerings_CreateOrUpdate_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Peerings_List_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Peerings_Get_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Peerings_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin/pkg/services/peerings/api/peerings.proto",
}

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

Functions

func RegisterPeeringsServer

func RegisterPeeringsServer(s grpc.ServiceRegistrar, srv PeeringsServer)

Types

type PeeringsClient

type PeeringsClient interface {
	CreateOrUpdate(ctx context.Context, in *api.CreateOrUpdateRequest, opts ...grpc.CallOption) (*api.CreateOrUpdateResponse, error)
	List(ctx context.Context, in *api.ListRequest, opts ...grpc.CallOption) (*api.ListResponse, error)
	Get(ctx context.Context, in *api.GetRequest, opts ...grpc.CallOption) (*api.GetResponse, error)
	Delete(ctx context.Context, in *api.DeleteRequest, opts ...grpc.CallOption) (*api.DeleteResponse, error)
}

PeeringsClient is the client API for Peerings 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.

func NewPeeringsClient

func NewPeeringsClient(cc grpc.ClientConnInterface) PeeringsClient

type PeeringsServer

type PeeringsServer interface {
	CreateOrUpdate(context.Context, *api.CreateOrUpdateRequest) (*api.CreateOrUpdateResponse, error)
	List(context.Context, *api.ListRequest) (*api.ListResponse, error)
	Get(context.Context, *api.GetRequest) (*api.GetResponse, error)
	Delete(context.Context, *api.DeleteRequest) (*api.DeleteResponse, error)
	// contains filtered or unexported methods
}

PeeringsServer is the server API for Peerings service. All implementations must embed UnimplementedPeeringsServer for forward compatibility.

type UnimplementedPeeringsServer

type UnimplementedPeeringsServer struct{}

UnimplementedPeeringsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPeeringsServer) CreateOrUpdate

func (UnimplementedPeeringsServer) Delete

func (UnimplementedPeeringsServer) Get

func (UnimplementedPeeringsServer) List

type UnsafePeeringsServer

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

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

Directories

Path Synopsis
features

Jump to

Keyboard shortcuts

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