v1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 17 Imported by: 3

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	LanternService_Illuminate_FullMethodName   = "/graph.v1.LanternService/Illuminate"
	LanternService_GetVertex_FullMethodName    = "/graph.v1.LanternService/GetVertex"
	LanternService_PutVertex_FullMethodName    = "/graph.v1.LanternService/PutVertex"
	LanternService_DeleteVertex_FullMethodName = "/graph.v1.LanternService/DeleteVertex"
	LanternService_GetEdge_FullMethodName      = "/graph.v1.LanternService/GetEdge"
	LanternService_AddEdge_FullMethodName      = "/graph.v1.LanternService/AddEdge"
	LanternService_PutEdge_FullMethodName      = "/graph.v1.LanternService/PutEdge"
	LanternService_DeleteEdge_FullMethodName   = "/graph.v1.LanternService/DeleteEdge"
)

Variables

View Source
var (
	Optimization_name = map[int32]string{
		0: "OPTIMIZATION_UNSPECIFIED",
		1: "OPTIMIZATION_MINIMUM_SPANNING_TREE",
		2: "OPTIMIZATION_MAXIMUM_SPANNING_TREE",
		3: "OPTIMIZATION_SHORTEST_PATH_TREE",
		4: "OPTIMIZATION_SHORTEST_PATH_TREE_INVERSE",
	}
	Optimization_value = map[string]int32{
		"OPTIMIZATION_UNSPECIFIED":                0,
		"OPTIMIZATION_MINIMUM_SPANNING_TREE":      1,
		"OPTIMIZATION_MAXIMUM_SPANNING_TREE":      2,
		"OPTIMIZATION_SHORTEST_PATH_TREE":         3,
		"OPTIMIZATION_SHORTEST_PATH_TREE_INVERSE": 4,
	}
)

Enum value maps for Optimization.

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_OK",
		2: "STATUS_INTERNAL_SERVER_ERROR",
		3: "STATUS_INVALID_REQUEST",
	}
	Status_value = map[string]int32{
		"STATUS_UNSPECIFIED":           0,
		"STATUS_OK":                    1,
		"STATUS_INTERNAL_SERVER_ERROR": 2,
		"STATUS_INVALID_REQUEST":       3,
	}
)

Enum value maps for Status.

View Source
var File_graph_v1_graph_proto protoreflect.FileDescriptor
View Source
var LanternService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "graph.v1.LanternService",
	HandlerType: (*LanternServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Illuminate",
			Handler:    _LanternService_Illuminate_Handler,
		},
		{
			MethodName: "GetVertex",
			Handler:    _LanternService_GetVertex_Handler,
		},
		{
			MethodName: "PutVertex",
			Handler:    _LanternService_PutVertex_Handler,
		},
		{
			MethodName: "DeleteVertex",
			Handler:    _LanternService_DeleteVertex_Handler,
		},
		{
			MethodName: "GetEdge",
			Handler:    _LanternService_GetEdge_Handler,
		},
		{
			MethodName: "AddEdge",
			Handler:    _LanternService_AddEdge_Handler,
		},
		{
			MethodName: "PutEdge",
			Handler:    _LanternService_PutEdge_Handler,
		},
		{
			MethodName: "DeleteEdge",
			Handler:    _LanternService_DeleteEdge_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "graph/v1/graph.proto",
}

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

Functions

func RegisterLanternServiceHandler

func RegisterLanternServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLanternServiceHandler registers the http handlers for service LanternService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLanternServiceHandlerClient

func RegisterLanternServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LanternServiceClient) error

RegisterLanternServiceHandlerClient registers the http handlers for service LanternService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LanternServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LanternServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LanternServiceClient" to call the correct interceptors.

func RegisterLanternServiceHandlerFromEndpoint

func RegisterLanternServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLanternServiceHandlerFromEndpoint is same as RegisterLanternServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLanternServiceHandlerServer

func RegisterLanternServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LanternServiceServer) error

RegisterLanternServiceHandlerServer registers the http handlers for service LanternService to "mux". UnaryRPC :call LanternServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLanternServiceHandlerFromEndpoint instead.

func RegisterLanternServiceServer

func RegisterLanternServiceServer(s grpc.ServiceRegistrar, srv LanternServiceServer)

Types

type AddEdgeRequest added in v0.2.0

type AddEdgeRequest struct {
	Edges []*Edge `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*AddEdgeRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use AddEdgeRequest.ProtoReflect.Descriptor instead.

func (*AddEdgeRequest) GetEdges added in v0.2.0

func (x *AddEdgeRequest) GetEdges() []*Edge

func (*AddEdgeRequest) ProtoMessage added in v0.2.0

func (*AddEdgeRequest) ProtoMessage()

func (*AddEdgeRequest) ProtoReflect added in v0.2.0

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

func (*AddEdgeRequest) Reset added in v0.2.0

func (x *AddEdgeRequest) Reset()

func (*AddEdgeRequest) String added in v0.2.0

func (x *AddEdgeRequest) String() string

type AddEdgeResponse added in v0.2.0

type AddEdgeResponse struct {
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*AddEdgeResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use AddEdgeResponse.ProtoReflect.Descriptor instead.

func (*AddEdgeResponse) GetStatus added in v0.2.0

func (x *AddEdgeResponse) GetStatus() Status

func (*AddEdgeResponse) ProtoMessage added in v0.2.0

func (*AddEdgeResponse) ProtoMessage()

func (*AddEdgeResponse) ProtoReflect added in v0.2.0

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

func (*AddEdgeResponse) Reset added in v0.2.0

func (x *AddEdgeResponse) Reset()

func (*AddEdgeResponse) String added in v0.2.0

func (x *AddEdgeResponse) String() string

type DeleteEdgeRequest added in v0.4.0

type DeleteEdgeRequest struct {
	Tail string `protobuf:"bytes,1,opt,name=tail,proto3" json:"tail,omitempty"`
	Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEdgeRequest) Descriptor deprecated added in v0.4.0

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

Deprecated: Use DeleteEdgeRequest.ProtoReflect.Descriptor instead.

func (*DeleteEdgeRequest) GetHead added in v0.4.0

func (x *DeleteEdgeRequest) GetHead() string

func (*DeleteEdgeRequest) GetTail added in v0.4.0

func (x *DeleteEdgeRequest) GetTail() string

func (*DeleteEdgeRequest) ProtoMessage added in v0.4.0

func (*DeleteEdgeRequest) ProtoMessage()

func (*DeleteEdgeRequest) ProtoReflect added in v0.4.0

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

func (*DeleteEdgeRequest) Reset added in v0.4.0

func (x *DeleteEdgeRequest) Reset()

func (*DeleteEdgeRequest) String added in v0.4.0

func (x *DeleteEdgeRequest) String() string

type DeleteEdgeResponse added in v0.4.0

type DeleteEdgeResponse struct {
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEdgeResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use DeleteEdgeResponse.ProtoReflect.Descriptor instead.

func (*DeleteEdgeResponse) GetStatus added in v0.4.0

func (x *DeleteEdgeResponse) GetStatus() Status

func (*DeleteEdgeResponse) ProtoMessage added in v0.4.0

func (*DeleteEdgeResponse) ProtoMessage()

func (*DeleteEdgeResponse) ProtoReflect added in v0.4.0

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

func (*DeleteEdgeResponse) Reset added in v0.4.0

func (x *DeleteEdgeResponse) Reset()

func (*DeleteEdgeResponse) String added in v0.4.0

func (x *DeleteEdgeResponse) String() string

type DeleteVertexRequest added in v0.4.0

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

func (*DeleteVertexRequest) Descriptor deprecated added in v0.4.0

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

Deprecated: Use DeleteVertexRequest.ProtoReflect.Descriptor instead.

func (*DeleteVertexRequest) GetKey added in v0.4.0

func (x *DeleteVertexRequest) GetKey() string

func (*DeleteVertexRequest) ProtoMessage added in v0.4.0

func (*DeleteVertexRequest) ProtoMessage()

func (*DeleteVertexRequest) ProtoReflect added in v0.4.0

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

func (*DeleteVertexRequest) Reset added in v0.4.0

func (x *DeleteVertexRequest) Reset()

func (*DeleteVertexRequest) String added in v0.4.0

func (x *DeleteVertexRequest) String() string

type DeleteVertexResponse added in v0.4.0

type DeleteVertexResponse struct {
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteVertexResponse) Descriptor deprecated added in v0.4.0

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

Deprecated: Use DeleteVertexResponse.ProtoReflect.Descriptor instead.

func (*DeleteVertexResponse) GetStatus added in v0.4.0

func (x *DeleteVertexResponse) GetStatus() Status

func (*DeleteVertexResponse) ProtoMessage added in v0.4.0

func (*DeleteVertexResponse) ProtoMessage()

func (*DeleteVertexResponse) ProtoReflect added in v0.4.0

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

func (*DeleteVertexResponse) Reset added in v0.4.0

func (x *DeleteVertexResponse) Reset()

func (*DeleteVertexResponse) String added in v0.4.0

func (x *DeleteVertexResponse) String() string

type Edge

type Edge struct {
	Tail       string                 `protobuf:"bytes,1,opt,name=tail,proto3" json:"tail,omitempty"`
	Head       string                 `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
	Weight     float32                `protobuf:"fixed32,3,opt,name=weight,proto3" json:"weight,omitempty"`
	Expiration *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// contains filtered or unexported fields
}

func (*Edge) Descriptor deprecated

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

Deprecated: Use Edge.ProtoReflect.Descriptor instead.

func (*Edge) GetExpiration

func (x *Edge) GetExpiration() *timestamppb.Timestamp

func (*Edge) GetHead

func (x *Edge) GetHead() string

func (*Edge) GetTail

func (x *Edge) GetTail() string

func (*Edge) GetWeight

func (x *Edge) GetWeight() float32

func (*Edge) ProtoMessage

func (*Edge) ProtoMessage()

func (*Edge) ProtoReflect

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

func (*Edge) Reset

func (x *Edge) Reset()

func (*Edge) String

func (x *Edge) String() string

type GetEdgeRequest

type GetEdgeRequest struct {
	Tail string `protobuf:"bytes,1,opt,name=tail,proto3" json:"tail,omitempty"`
	Head string `protobuf:"bytes,2,opt,name=head,proto3" json:"head,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEdgeRequest) Descriptor deprecated

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

Deprecated: Use GetEdgeRequest.ProtoReflect.Descriptor instead.

func (*GetEdgeRequest) GetHead

func (x *GetEdgeRequest) GetHead() string

func (*GetEdgeRequest) GetTail

func (x *GetEdgeRequest) GetTail() string

func (*GetEdgeRequest) ProtoMessage

func (*GetEdgeRequest) ProtoMessage()

func (*GetEdgeRequest) ProtoReflect

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

func (*GetEdgeRequest) Reset

func (x *GetEdgeRequest) Reset()

func (*GetEdgeRequest) String

func (x *GetEdgeRequest) String() string

type GetEdgeResponse

type GetEdgeResponse struct {
	Edge *Edge `protobuf:"bytes,1,opt,name=edge,proto3" json:"edge,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEdgeResponse) Descriptor deprecated

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

Deprecated: Use GetEdgeResponse.ProtoReflect.Descriptor instead.

func (*GetEdgeResponse) GetEdge

func (x *GetEdgeResponse) GetEdge() *Edge

func (*GetEdgeResponse) ProtoMessage

func (*GetEdgeResponse) ProtoMessage()

func (*GetEdgeResponse) ProtoReflect

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

func (*GetEdgeResponse) Reset

func (x *GetEdgeResponse) Reset()

func (*GetEdgeResponse) String

func (x *GetEdgeResponse) String() string

type GetVertexRequest

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

func (*GetVertexRequest) Descriptor deprecated

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

Deprecated: Use GetVertexRequest.ProtoReflect.Descriptor instead.

func (*GetVertexRequest) GetKey

func (x *GetVertexRequest) GetKey() string

func (*GetVertexRequest) ProtoMessage

func (*GetVertexRequest) ProtoMessage()

func (*GetVertexRequest) ProtoReflect

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

func (*GetVertexRequest) Reset

func (x *GetVertexRequest) Reset()

func (*GetVertexRequest) String

func (x *GetVertexRequest) String() string

type GetVertexResponse

type GetVertexResponse struct {
	Vertex *Vertex `protobuf:"bytes,1,opt,name=vertex,proto3" json:"vertex,omitempty"`
	Status Status  `protobuf:"varint,2,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetVertexResponse) Descriptor deprecated

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

Deprecated: Use GetVertexResponse.ProtoReflect.Descriptor instead.

func (*GetVertexResponse) GetStatus added in v0.4.1

func (x *GetVertexResponse) GetStatus() Status

func (*GetVertexResponse) GetVertex

func (x *GetVertexResponse) GetVertex() *Vertex

func (*GetVertexResponse) ProtoMessage

func (*GetVertexResponse) ProtoMessage()

func (*GetVertexResponse) ProtoReflect

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

func (*GetVertexResponse) Reset

func (x *GetVertexResponse) Reset()

func (*GetVertexResponse) String

func (x *GetVertexResponse) String() string

type Graph

type Graph struct {
	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
	Edges    []*Edge   `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*Graph) Descriptor deprecated

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

Deprecated: Use Graph.ProtoReflect.Descriptor instead.

func (*Graph) GetEdges

func (x *Graph) GetEdges() []*Edge

func (*Graph) GetVertices

func (x *Graph) GetVertices() []*Vertex

func (*Graph) ProtoMessage

func (*Graph) ProtoMessage()

func (*Graph) ProtoReflect

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

func (*Graph) Reset

func (x *Graph) Reset()

func (*Graph) String

func (x *Graph) String() string

type IlluminateRequest

type IlluminateRequest struct {
	Seed         string       `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	Step         uint32       `protobuf:"varint,2,opt,name=step,proto3" json:"step,omitempty"`
	K            uint32       `protobuf:"varint,3,opt,name=k,proto3" json:"k,omitempty"`
	Tfidf        bool         `protobuf:"varint,4,opt,name=tfidf,proto3" json:"tfidf,omitempty"`
	Optimization Optimization `protobuf:"varint,5,opt,name=optimization,proto3,enum=graph.v1.Optimization" json:"optimization,omitempty"`
	// contains filtered or unexported fields
}

func (*IlluminateRequest) Descriptor deprecated

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

Deprecated: Use IlluminateRequest.ProtoReflect.Descriptor instead.

func (*IlluminateRequest) GetK

func (x *IlluminateRequest) GetK() uint32

func (*IlluminateRequest) GetOptimization added in v0.3.1

func (x *IlluminateRequest) GetOptimization() Optimization

func (*IlluminateRequest) GetSeed

func (x *IlluminateRequest) GetSeed() string

func (*IlluminateRequest) GetStep

func (x *IlluminateRequest) GetStep() uint32

func (*IlluminateRequest) GetTfidf

func (x *IlluminateRequest) GetTfidf() bool

func (*IlluminateRequest) ProtoMessage

func (*IlluminateRequest) ProtoMessage()

func (*IlluminateRequest) ProtoReflect

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

func (*IlluminateRequest) Reset

func (x *IlluminateRequest) Reset()

func (*IlluminateRequest) String

func (x *IlluminateRequest) String() string

type IlluminateResponse

type IlluminateResponse struct {
	Graph  *Graph `protobuf:"bytes,1,opt,name=graph,proto3" json:"graph,omitempty"`
	Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*IlluminateResponse) Descriptor deprecated

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

Deprecated: Use IlluminateResponse.ProtoReflect.Descriptor instead.

func (*IlluminateResponse) GetGraph

func (x *IlluminateResponse) GetGraph() *Graph

func (*IlluminateResponse) GetStatus

func (x *IlluminateResponse) GetStatus() Status

func (*IlluminateResponse) ProtoMessage

func (*IlluminateResponse) ProtoMessage()

func (*IlluminateResponse) ProtoReflect

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

func (*IlluminateResponse) Reset

func (x *IlluminateResponse) Reset()

func (*IlluminateResponse) String

func (x *IlluminateResponse) String() string

type LanternServiceClient

type LanternServiceClient interface {
	Illuminate(ctx context.Context, in *IlluminateRequest, opts ...grpc.CallOption) (*IlluminateResponse, error)
	GetVertex(ctx context.Context, in *GetVertexRequest, opts ...grpc.CallOption) (*GetVertexResponse, error)
	PutVertex(ctx context.Context, in *PutVertexRequest, opts ...grpc.CallOption) (*PutVertexResponse, error)
	DeleteVertex(ctx context.Context, in *DeleteVertexRequest, opts ...grpc.CallOption) (*DeleteVertexResponse, error)
	GetEdge(ctx context.Context, in *GetEdgeRequest, opts ...grpc.CallOption) (*GetEdgeResponse, error)
	AddEdge(ctx context.Context, in *AddEdgeRequest, opts ...grpc.CallOption) (*AddEdgeResponse, error)
	PutEdge(ctx context.Context, in *PutEdgeRequest, opts ...grpc.CallOption) (*PutEdgeResponse, error)
	DeleteEdge(ctx context.Context, in *DeleteEdgeRequest, opts ...grpc.CallOption) (*DeleteEdgeResponse, error)
}

LanternServiceClient is the client API for LanternService 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 LanternServiceServer

LanternServiceServer is the server API for LanternService service. All implementations must embed UnimplementedLanternServiceServer for forward compatibility

type Optimization added in v0.3.1

type Optimization int32
const (
	Optimization_OPTIMIZATION_UNSPECIFIED                Optimization = 0
	Optimization_OPTIMIZATION_MINIMUM_SPANNING_TREE      Optimization = 1
	Optimization_OPTIMIZATION_MAXIMUM_SPANNING_TREE      Optimization = 2
	Optimization_OPTIMIZATION_SHORTEST_PATH_TREE         Optimization = 3
	Optimization_OPTIMIZATION_SHORTEST_PATH_TREE_INVERSE Optimization = 4
)

func (Optimization) Descriptor added in v0.3.1

func (Optimization) Enum added in v0.3.1

func (x Optimization) Enum() *Optimization

func (Optimization) EnumDescriptor deprecated added in v0.3.1

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

Deprecated: Use Optimization.Descriptor instead.

func (Optimization) Number added in v0.3.1

func (Optimization) String added in v0.3.1

func (x Optimization) String() string

func (Optimization) Type added in v0.3.1

type PutEdgeRequest

type PutEdgeRequest struct {
	Edges []*Edge `protobuf:"bytes,1,rep,name=edges,proto3" json:"edges,omitempty"`
	// contains filtered or unexported fields
}

func (*PutEdgeRequest) Descriptor deprecated

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

Deprecated: Use PutEdgeRequest.ProtoReflect.Descriptor instead.

func (*PutEdgeRequest) GetEdges

func (x *PutEdgeRequest) GetEdges() []*Edge

func (*PutEdgeRequest) ProtoMessage

func (*PutEdgeRequest) ProtoMessage()

func (*PutEdgeRequest) ProtoReflect

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

func (*PutEdgeRequest) Reset

func (x *PutEdgeRequest) Reset()

func (*PutEdgeRequest) String

func (x *PutEdgeRequest) String() string

type PutEdgeResponse

type PutEdgeResponse struct {
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PutEdgeResponse) Descriptor deprecated

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

Deprecated: Use PutEdgeResponse.ProtoReflect.Descriptor instead.

func (*PutEdgeResponse) GetStatus

func (x *PutEdgeResponse) GetStatus() Status

func (*PutEdgeResponse) ProtoMessage

func (*PutEdgeResponse) ProtoMessage()

func (*PutEdgeResponse) ProtoReflect

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

func (*PutEdgeResponse) Reset

func (x *PutEdgeResponse) Reset()

func (*PutEdgeResponse) String

func (x *PutEdgeResponse) String() string

type PutVertexRequest

type PutVertexRequest struct {
	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
	// contains filtered or unexported fields
}

func (*PutVertexRequest) Descriptor deprecated

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

Deprecated: Use PutVertexRequest.ProtoReflect.Descriptor instead.

func (*PutVertexRequest) GetVertices

func (x *PutVertexRequest) GetVertices() []*Vertex

func (*PutVertexRequest) ProtoMessage

func (*PutVertexRequest) ProtoMessage()

func (*PutVertexRequest) ProtoReflect

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

func (*PutVertexRequest) Reset

func (x *PutVertexRequest) Reset()

func (*PutVertexRequest) String

func (x *PutVertexRequest) String() string

type PutVertexResponse

type PutVertexResponse struct {
	Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PutVertexResponse) Descriptor deprecated

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

Deprecated: Use PutVertexResponse.ProtoReflect.Descriptor instead.

func (*PutVertexResponse) GetStatus

func (x *PutVertexResponse) GetStatus() Status

func (*PutVertexResponse) ProtoMessage

func (*PutVertexResponse) ProtoMessage()

func (*PutVertexResponse) ProtoReflect

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

func (*PutVertexResponse) Reset

func (x *PutVertexResponse) Reset()

func (*PutVertexResponse) String

func (x *PutVertexResponse) String() string

type Status

type Status int32
const (
	Status_STATUS_UNSPECIFIED           Status = 0
	Status_STATUS_OK                    Status = 1
	Status_STATUS_INTERNAL_SERVER_ERROR Status = 2
	Status_STATUS_INVALID_REQUEST       Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type UnimplementedLanternServiceServer

type UnimplementedLanternServiceServer struct {
}

UnimplementedLanternServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLanternServiceServer) AddEdge added in v0.4.0

func (UnimplementedLanternServiceServer) DeleteEdge added in v0.4.0

func (UnimplementedLanternServiceServer) DeleteVertex added in v0.4.0

func (UnimplementedLanternServiceServer) GetEdge

func (UnimplementedLanternServiceServer) GetVertex

func (UnimplementedLanternServiceServer) Illuminate

func (UnimplementedLanternServiceServer) PutEdge

func (UnimplementedLanternServiceServer) PutVertex

type UnsafeLanternServiceServer

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

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

type Vertex

type Vertex struct {
	Key        string                 `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Expiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// Types that are assignable to Value:
	//
	//	*Vertex_Float64
	//	*Vertex_Float32
	//	*Vertex_Int32
	//	*Vertex_Int64
	//	*Vertex_Uint32
	//	*Vertex_Uint64
	//	*Vertex_Bool
	//	*Vertex_String_
	//	*Vertex_Bytes
	//	*Vertex_Timestamp
	//	*Vertex_Nil
	Value isVertex_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Vertex) Descriptor deprecated

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

Deprecated: Use Vertex.ProtoReflect.Descriptor instead.

func (*Vertex) GetBool

func (x *Vertex) GetBool() bool

func (*Vertex) GetBytes

func (x *Vertex) GetBytes() []byte

func (*Vertex) GetExpiration

func (x *Vertex) GetExpiration() *timestamppb.Timestamp

func (*Vertex) GetFloat32

func (x *Vertex) GetFloat32() float32

func (*Vertex) GetFloat64

func (x *Vertex) GetFloat64() float64

func (*Vertex) GetInt32

func (x *Vertex) GetInt32() int32

func (*Vertex) GetInt64

func (x *Vertex) GetInt64() int64

func (*Vertex) GetKey

func (x *Vertex) GetKey() string

func (*Vertex) GetNil

func (x *Vertex) GetNil() bool

func (*Vertex) GetString_

func (x *Vertex) GetString_() string

func (*Vertex) GetTimestamp

func (x *Vertex) GetTimestamp() *timestamppb.Timestamp

func (*Vertex) GetUint32

func (x *Vertex) GetUint32() uint32

func (*Vertex) GetUint64

func (x *Vertex) GetUint64() uint64

func (*Vertex) GetValue

func (m *Vertex) GetValue() isVertex_Value

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) ProtoReflect

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

func (*Vertex) Reset

func (x *Vertex) Reset()

func (*Vertex) String

func (x *Vertex) String() string

type Vertex_Bool

type Vertex_Bool struct {
	Bool bool `protobuf:"varint,16,opt,name=bool,proto3,oneof"`
}

type Vertex_Bytes

type Vertex_Bytes struct {
	Bytes []byte `protobuf:"bytes,18,opt,name=bytes,proto3,oneof"`
}

type Vertex_Float32

type Vertex_Float32 struct {
	Float32 float32 `protobuf:"fixed32,11,opt,name=float32,proto3,oneof"`
}

type Vertex_Float64

type Vertex_Float64 struct {
	Float64 float64 `protobuf:"fixed64,10,opt,name=float64,proto3,oneof"`
}

type Vertex_Int32

type Vertex_Int32 struct {
	Int32 int32 `protobuf:"varint,12,opt,name=int32,proto3,oneof"`
}

type Vertex_Int64

type Vertex_Int64 struct {
	Int64 int64 `protobuf:"varint,13,opt,name=int64,proto3,oneof"`
}

type Vertex_Nil

type Vertex_Nil struct {
	Nil bool `protobuf:"varint,30,opt,name=nil,proto3,oneof"`
}

type Vertex_String_

type Vertex_String_ struct {
	String_ string `protobuf:"bytes,17,opt,name=string,proto3,oneof"`
}

type Vertex_Timestamp

type Vertex_Timestamp struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=timestamp,proto3,oneof"`
}

type Vertex_Uint32

type Vertex_Uint32 struct {
	Uint32 uint32 `protobuf:"varint,14,opt,name=uint32,proto3,oneof"`
}

type Vertex_Uint64

type Vertex_Uint64 struct {
	Uint64 uint64 `protobuf:"varint,15,opt,name=uint64,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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