generated

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

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

Go to latest
Published: Feb 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessRequest_Direction_name = map[int32]string{
		0: "INCOMING",
		1: "OUTGOING",
		2: "BOTH",
	}
	AccessRequest_Direction_value = map[string]int32{
		"INCOMING": 0,
		"OUTGOING": 1,
		"BOTH":     2,
	}
)

Enum value maps for AccessRequest_Direction.

View Source
var (
	AccessResponse_ResponseStatus_name = map[int32]string{
		0: "NO_ERROR",
		1: "UNSUPPORTED",
		2: "SERVER_ERROR",
	}
	AccessResponse_ResponseStatus_value = map[string]int32{
		"NO_ERROR":     0,
		"UNSUPPORTED":  1,
		"SERVER_ERROR": 2,
	}
)

Enum value maps for AccessResponse_ResponseStatus.

View Source
var File_graph_access_proto protoreflect.FileDescriptor
View Source
var GraphAccess_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "graph_access_service.GraphAccess",
	HandlerType: (*GraphAccessServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetNeighbours",
			Handler:    _GraphAccess_GetNeighbours_Handler,
		},
		{
			MethodName: "GetStats",
			Handler:    _GraphAccess_GetStats_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "graph_access.proto",
}

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

Functions

func RegisterGraphAccessServer

func RegisterGraphAccessServer(s grpc.ServiceRegistrar, srv GraphAccessServer)

Types

type AccessRequest

type AccessRequest struct {
	NodeId    uint32                  `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`                                                         // Source node id
	Label     uint32                  `protobuf:"varint,2,opt,name=label,proto3" json:"label,omitempty"`                                                           // Edge label
	Direction AccessRequest_Direction `protobuf:"varint,3,opt,name=direction,proto3,enum=graph_access_service.AccessRequest_Direction" json:"direction,omitempty"` // Is the edge outgoing or incoming
	// contains filtered or unexported fields
}

func (*AccessRequest) Descriptor deprecated

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

Deprecated: Use AccessRequest.ProtoReflect.Descriptor instead.

func (*AccessRequest) GetDirection

func (x *AccessRequest) GetDirection() AccessRequest_Direction

func (*AccessRequest) GetLabel

func (x *AccessRequest) GetLabel() uint32

func (*AccessRequest) GetNodeId

func (x *AccessRequest) GetNodeId() uint32

func (*AccessRequest) ProtoMessage

func (*AccessRequest) ProtoMessage()

func (*AccessRequest) ProtoReflect

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

func (*AccessRequest) Reset

func (x *AccessRequest) Reset()

func (*AccessRequest) String

func (x *AccessRequest) String() string

type AccessRequest_Direction

type AccessRequest_Direction int32
const (
	AccessRequest_INCOMING AccessRequest_Direction = 0
	AccessRequest_OUTGOING AccessRequest_Direction = 1
	AccessRequest_BOTH     AccessRequest_Direction = 2
)

func (AccessRequest_Direction) Descriptor

func (AccessRequest_Direction) Enum

func (AccessRequest_Direction) EnumDescriptor deprecated

func (AccessRequest_Direction) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessRequest_Direction.Descriptor instead.

func (AccessRequest_Direction) Number

func (AccessRequest_Direction) String

func (x AccessRequest_Direction) String() string

func (AccessRequest_Direction) Type

type AccessResponse

type AccessResponse struct {
	Neighbours []uint32                      `protobuf:"varint,1,rep,packed,name=neighbours,proto3" json:"neighbours,omitempty"` // List of Node ids for the neighbours
	Status     AccessResponse_ResponseStatus `protobuf:"varint,2,opt,name=status,proto3,enum=graph_access_service.AccessResponse_ResponseStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AccessResponse) Descriptor deprecated

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

Deprecated: Use AccessResponse.ProtoReflect.Descriptor instead.

func (*AccessResponse) GetNeighbours

func (x *AccessResponse) GetNeighbours() []uint32

func (*AccessResponse) GetStatus

func (*AccessResponse) ProtoMessage

func (*AccessResponse) ProtoMessage()

func (*AccessResponse) ProtoReflect

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

func (*AccessResponse) Reset

func (x *AccessResponse) Reset()

func (*AccessResponse) String

func (x *AccessResponse) String() string

type AccessResponse_ResponseStatus

type AccessResponse_ResponseStatus int32
const (
	AccessResponse_NO_ERROR     AccessResponse_ResponseStatus = 0
	AccessResponse_UNSUPPORTED  AccessResponse_ResponseStatus = 1
	AccessResponse_SERVER_ERROR AccessResponse_ResponseStatus = 2
)

func (AccessResponse_ResponseStatus) Descriptor

func (AccessResponse_ResponseStatus) Enum

func (AccessResponse_ResponseStatus) EnumDescriptor deprecated

func (AccessResponse_ResponseStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use AccessResponse_ResponseStatus.Descriptor instead.

func (AccessResponse_ResponseStatus) Number

func (AccessResponse_ResponseStatus) String

func (AccessResponse_ResponseStatus) Type

type GraphAccessClient

type GraphAccessClient interface {
	GetNeighbours(ctx context.Context, in *AccessRequest, opts ...grpc.CallOption) (*AccessResponse, error)
	GetStats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*Stats, error)
}

GraphAccessClient is the client API for GraphAccess 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 GraphAccessServer

type GraphAccessServer interface {
	GetNeighbours(context.Context, *AccessRequest) (*AccessResponse, error)
	GetStats(context.Context, *StatsRequest) (*Stats, error)
	// contains filtered or unexported methods
}

GraphAccessServer is the server API for GraphAccess service. All implementations must embed UnimplementedGraphAccessServer for forward compatibility

type Stats

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

func (*Stats) Descriptor deprecated

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

Deprecated: Use Stats.ProtoReflect.Descriptor instead.

func (*Stats) GetStats

func (x *Stats) GetStats() string

func (*Stats) ProtoMessage

func (*Stats) ProtoMessage()

func (*Stats) ProtoReflect

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

func (*Stats) Reset

func (x *Stats) Reset()

func (*Stats) String

func (x *Stats) String() string

type StatsRequest

type StatsRequest struct {
	// contains filtered or unexported fields
}

func (*StatsRequest) Descriptor deprecated

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

Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.

func (*StatsRequest) ProtoMessage

func (*StatsRequest) ProtoMessage()

func (*StatsRequest) ProtoReflect

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

func (*StatsRequest) Reset

func (x *StatsRequest) Reset()

func (*StatsRequest) String

func (x *StatsRequest) String() string

type UnimplementedGraphAccessServer

type UnimplementedGraphAccessServer struct {
}

UnimplementedGraphAccessServer must be embedded to have forward compatible implementations.

func (UnimplementedGraphAccessServer) GetNeighbours

func (UnimplementedGraphAccessServer) GetStats

type UnsafeGraphAccessServer

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

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

Jump to

Keyboard shortcuts

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