network

package
v0.0.0-...-0f6999a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Services_CreateService_FullMethodName  = "/network.Services/CreateService"
	Services_GetService_FullMethodName     = "/network.Services/GetService"
	Services_GetServiceMany_FullMethodName = "/network.Services/GetServiceMany"
	Services_UpsertService_FullMethodName  = "/network.Services/UpsertService"
	Services_DeleteService_FullMethodName  = "/network.Services/DeleteService"
)

Variables

View Source
var File_rpc_network_services_proto protoreflect.FileDescriptor
View Source
var Services_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "network.Services",
	HandlerType: (*ServicesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateService",
			Handler:    _Services_CreateService_Handler,
		},
		{
			MethodName: "GetService",
			Handler:    _Services_GetService_Handler,
		},
		{
			MethodName: "GetServiceMany",
			Handler:    _Services_GetServiceMany_Handler,
		},
		{
			MethodName: "UpsertService",
			Handler:    _Services_UpsertService_Handler,
		},
		{
			MethodName: "DeleteService",
			Handler:    _Services_DeleteService_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "rpc/network/services.proto",
}

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

Functions

func RegisterServicesServer

func RegisterServicesServer(s grpc.ServiceRegistrar, srv ServicesServer)

Types

type CreateServiceRequest

type CreateServiceRequest struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServiceRequest) Descriptor deprecated

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

Deprecated: Use CreateServiceRequest.ProtoReflect.Descriptor instead.

func (*CreateServiceRequest) GetServices

func (x *CreateServiceRequest) GetServices() []*network.Service

func (*CreateServiceRequest) ProtoMessage

func (*CreateServiceRequest) ProtoMessage()

func (*CreateServiceRequest) ProtoReflect

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

func (*CreateServiceRequest) Reset

func (x *CreateServiceRequest) Reset()

func (*CreateServiceRequest) String

func (x *CreateServiceRequest) String() string

type CreateServiceResponse

type CreateServiceResponse struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateServiceResponse) Descriptor deprecated

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

Deprecated: Use CreateServiceResponse.ProtoReflect.Descriptor instead.

func (*CreateServiceResponse) GetServices

func (x *CreateServiceResponse) GetServices() []*network.Service

func (*CreateServiceResponse) ProtoMessage

func (*CreateServiceResponse) ProtoMessage()

func (*CreateServiceResponse) ProtoReflect

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

func (*CreateServiceResponse) Reset

func (x *CreateServiceResponse) Reset()

func (*CreateServiceResponse) String

func (x *CreateServiceResponse) String() string

type DeleteServiceRequest

type DeleteServiceRequest struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteServiceRequest) Descriptor deprecated

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

Deprecated: Use DeleteServiceRequest.ProtoReflect.Descriptor instead.

func (*DeleteServiceRequest) GetServices

func (x *DeleteServiceRequest) GetServices() []*network.Service

func (*DeleteServiceRequest) ProtoMessage

func (*DeleteServiceRequest) ProtoMessage()

func (*DeleteServiceRequest) ProtoReflect

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

func (*DeleteServiceRequest) Reset

func (x *DeleteServiceRequest) Reset()

func (*DeleteServiceRequest) String

func (x *DeleteServiceRequest) String() string

type DeleteServiceResponse

type DeleteServiceResponse struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteServiceResponse) Descriptor deprecated

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

Deprecated: Use DeleteServiceResponse.ProtoReflect.Descriptor instead.

func (*DeleteServiceResponse) GetServices

func (x *DeleteServiceResponse) GetServices() []*network.Service

func (*DeleteServiceResponse) ProtoMessage

func (*DeleteServiceResponse) ProtoMessage()

func (*DeleteServiceResponse) ProtoReflect

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

func (*DeleteServiceResponse) Reset

func (x *DeleteServiceResponse) Reset()

func (*DeleteServiceResponse) String

func (x *DeleteServiceResponse) String() string

type ReadServiceManyRequest

type ReadServiceManyRequest struct {
	Service *network.Service `protobuf:"bytes,1,opt,name=Service,proto3" json:"Service,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadServiceManyRequest) Descriptor deprecated

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

Deprecated: Use ReadServiceManyRequest.ProtoReflect.Descriptor instead.

func (*ReadServiceManyRequest) GetService

func (x *ReadServiceManyRequest) GetService() *network.Service

func (*ReadServiceManyRequest) ProtoMessage

func (*ReadServiceManyRequest) ProtoMessage()

func (*ReadServiceManyRequest) ProtoReflect

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

func (*ReadServiceManyRequest) Reset

func (x *ReadServiceManyRequest) Reset()

func (*ReadServiceManyRequest) String

func (x *ReadServiceManyRequest) String() string

type ReadServiceManyResponse

type ReadServiceManyResponse struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadServiceManyResponse) Descriptor deprecated

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

Deprecated: Use ReadServiceManyResponse.ProtoReflect.Descriptor instead.

func (*ReadServiceManyResponse) GetServices

func (x *ReadServiceManyResponse) GetServices() []*network.Service

func (*ReadServiceManyResponse) ProtoMessage

func (*ReadServiceManyResponse) ProtoMessage()

func (*ReadServiceManyResponse) ProtoReflect

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

func (*ReadServiceManyResponse) Reset

func (x *ReadServiceManyResponse) Reset()

func (*ReadServiceManyResponse) String

func (x *ReadServiceManyResponse) String() string

type ReadServiceRequest

type ReadServiceRequest struct {
	Service *network.Service `protobuf:"bytes,1,opt,name=Service,proto3" json:"Service,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadServiceRequest) Descriptor deprecated

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

Deprecated: Use ReadServiceRequest.ProtoReflect.Descriptor instead.

func (*ReadServiceRequest) GetService

func (x *ReadServiceRequest) GetService() *network.Service

func (*ReadServiceRequest) ProtoMessage

func (*ReadServiceRequest) ProtoMessage()

func (*ReadServiceRequest) ProtoReflect

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

func (*ReadServiceRequest) Reset

func (x *ReadServiceRequest) Reset()

func (*ReadServiceRequest) String

func (x *ReadServiceRequest) String() string

type ReadServiceResponse

type ReadServiceResponse struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*ReadServiceResponse) Descriptor deprecated

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

Deprecated: Use ReadServiceResponse.ProtoReflect.Descriptor instead.

func (*ReadServiceResponse) GetServices

func (x *ReadServiceResponse) GetServices() []*network.Service

func (*ReadServiceResponse) ProtoMessage

func (*ReadServiceResponse) ProtoMessage()

func (*ReadServiceResponse) ProtoReflect

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

func (*ReadServiceResponse) Reset

func (x *ReadServiceResponse) Reset()

func (*ReadServiceResponse) String

func (x *ReadServiceResponse) String() string

type ServicesClient

type ServicesClient interface {
	CreateService(ctx context.Context, in *CreateServiceRequest, opts ...grpc.CallOption) (*CreateServiceResponse, error)
	GetService(ctx context.Context, in *ReadServiceRequest, opts ...grpc.CallOption) (*ReadServiceResponse, error)
	GetServiceMany(ctx context.Context, in *ReadServiceRequest, opts ...grpc.CallOption) (*ReadServiceResponse, error)
	UpsertService(ctx context.Context, in *UpsertServiceRequest, opts ...grpc.CallOption) (*UpsertServiceResponse, error)
	DeleteService(ctx context.Context, in *DeleteServiceRequest, opts ...grpc.CallOption) (*DeleteServiceResponse, error)
}

ServicesClient is the client API for Services 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 NewServicesClient

func NewServicesClient(cc grpc.ClientConnInterface) ServicesClient

type ServicesServer

type ServicesServer interface {
	CreateService(context.Context, *CreateServiceRequest) (*CreateServiceResponse, error)
	GetService(context.Context, *ReadServiceRequest) (*ReadServiceResponse, error)
	GetServiceMany(context.Context, *ReadServiceRequest) (*ReadServiceResponse, error)
	UpsertService(context.Context, *UpsertServiceRequest) (*UpsertServiceResponse, error)
	DeleteService(context.Context, *DeleteServiceRequest) (*DeleteServiceResponse, error)
	// contains filtered or unexported methods
}

ServicesServer is the server API for Services service. All implementations must embed UnimplementedServicesServer for forward compatibility

type UnimplementedServicesServer

type UnimplementedServicesServer struct {
}

UnimplementedServicesServer must be embedded to have forward compatible implementations.

func (UnimplementedServicesServer) CreateService

func (UnimplementedServicesServer) DeleteService

func (UnimplementedServicesServer) GetService

func (UnimplementedServicesServer) GetServiceMany

func (UnimplementedServicesServer) UpsertService

type UnsafeServicesServer

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

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

type UpsertServiceRequest

type UpsertServiceRequest struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertServiceRequest) Descriptor deprecated

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

Deprecated: Use UpsertServiceRequest.ProtoReflect.Descriptor instead.

func (*UpsertServiceRequest) GetServices

func (x *UpsertServiceRequest) GetServices() []*network.Service

func (*UpsertServiceRequest) ProtoMessage

func (*UpsertServiceRequest) ProtoMessage()

func (*UpsertServiceRequest) ProtoReflect

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

func (*UpsertServiceRequest) Reset

func (x *UpsertServiceRequest) Reset()

func (*UpsertServiceRequest) String

func (x *UpsertServiceRequest) String() string

type UpsertServiceResponse

type UpsertServiceResponse struct {
	Services []*network.Service `protobuf:"bytes,1,rep,name=Services,proto3" json:"Services,omitempty"`
	// contains filtered or unexported fields
}

func (*UpsertServiceResponse) Descriptor deprecated

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

Deprecated: Use UpsertServiceResponse.ProtoReflect.Descriptor instead.

func (*UpsertServiceResponse) GetServices

func (x *UpsertServiceResponse) GetServices() []*network.Service

func (*UpsertServiceResponse) ProtoMessage

func (*UpsertServiceResponse) ProtoMessage()

func (*UpsertServiceResponse) ProtoReflect

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

func (*UpsertServiceResponse) Reset

func (x *UpsertServiceResponse) Reset()

func (*UpsertServiceResponse) String

func (x *UpsertServiceResponse) String() string

Jump to

Keyboard shortcuts

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