Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterLanternServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLanternServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LanternServiceClient) error
- func RegisterLanternServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLanternServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LanternServiceServer) error
- func RegisterLanternServiceServer(s grpc.ServiceRegistrar, srv LanternServiceServer)
- type Edge
- func (*Edge) Descriptor() ([]byte, []int)deprecated
- func (x *Edge) GetExpiration() *timestamppb.Timestamp
- func (x *Edge) GetHead() string
- func (x *Edge) GetTail() string
- func (x *Edge) GetWeight() float32
- func (*Edge) ProtoMessage()
- func (x *Edge) ProtoReflect() protoreflect.Message
- func (x *Edge) Reset()
- func (x *Edge) String() string
- type GetVertexRequest
- type GetVertexResponse
- type Graph
- func (*Graph) Descriptor() ([]byte, []int)deprecated
- func (x *Graph) GetEdges() []*Edge
- func (x *Graph) GetStats() *GraphStats
- func (x *Graph) GetVertices() []*Vertex
- func (*Graph) ProtoMessage()
- func (x *Graph) ProtoReflect() protoreflect.Message
- func (x *Graph) Reset()
- func (x *Graph) String() string
- type GraphStats
- type GraphStats_VertexDegree
- func (*GraphStats_VertexDegree) Descriptor() ([]byte, []int)deprecated
- func (x *GraphStats_VertexDegree) GetIn() uint32
- func (x *GraphStats_VertexDegree) GetKey() string
- func (x *GraphStats_VertexDegree) GetOut() uint32
- func (*GraphStats_VertexDegree) ProtoMessage()
- func (x *GraphStats_VertexDegree) ProtoReflect() protoreflect.Message
- func (x *GraphStats_VertexDegree) Reset()
- func (x *GraphStats_VertexDegree) String() string
- type IlluminateRequest
- func (*IlluminateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IlluminateRequest) GetSeed() string
- func (x *IlluminateRequest) GetStep() uint32
- func (x *IlluminateRequest) GetTopK() uint32
- func (*IlluminateRequest) ProtoMessage()
- func (x *IlluminateRequest) ProtoReflect() protoreflect.Message
- func (x *IlluminateRequest) Reset()
- func (x *IlluminateRequest) String() string
- type IlluminateResponse
- func (*IlluminateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IlluminateResponse) GetGraph() *Graph
- func (x *IlluminateResponse) GetStatus() Status
- func (*IlluminateResponse) ProtoMessage()
- func (x *IlluminateResponse) ProtoReflect() protoreflect.Message
- func (x *IlluminateResponse) Reset()
- func (x *IlluminateResponse) String() string
- type LanternServiceClient
- type LanternServiceServer
- type PutEdgeRequest
- type PutEdgeResponse
- type PutRequest
- type PutResponse
- type PutVertexRequest
- type PutVertexResponse
- type Status
- type UnimplementedLanternServiceServer
- func (UnimplementedLanternServiceServer) GetVertex(context.Context, *GetVertexRequest) (*GetVertexResponse, error)
- func (UnimplementedLanternServiceServer) Illuminate(context.Context, *IlluminateRequest) (*IlluminateResponse, error)
- func (UnimplementedLanternServiceServer) Put(context.Context, *PutRequest) (*PutResponse, error)
- func (UnimplementedLanternServiceServer) PutEdge(context.Context, *PutEdgeRequest) (*PutEdgeResponse, error)
- func (UnimplementedLanternServiceServer) PutVertex(context.Context, *PutVertexRequest) (*PutVertexResponse, error)
- type UnsafeLanternServiceServer
- type Vertex
- func (*Vertex) Descriptor() ([]byte, []int)deprecated
- func (x *Vertex) GetBool() bool
- func (x *Vertex) GetBytes() []byte
- func (x *Vertex) GetExpiration() *timestamppb.Timestamp
- func (x *Vertex) GetFloat32() float32
- func (x *Vertex) GetFloat64() float64
- func (x *Vertex) GetInt32() int32
- func (x *Vertex) GetInt64() int64
- func (x *Vertex) GetKey() string
- func (x *Vertex) GetNil() bool
- func (x *Vertex) GetString_() string
- func (x *Vertex) GetTimestamp() *timestamppb.Timestamp
- func (x *Vertex) GetUint32() uint32
- func (x *Vertex) GetUint64() uint64
- func (m *Vertex) GetValue() isVertex_Value
- func (*Vertex) ProtoMessage()
- func (x *Vertex) ProtoReflect() protoreflect.Message
- func (x *Vertex) Reset()
- func (x *Vertex) String() string
- type Vertex_Bool
- type Vertex_Bytes
- type Vertex_Float32
- type Vertex_Float64
- type Vertex_Int32
- type Vertex_Int64
- type Vertex_Nil
- type Vertex_String_
- type Vertex_Timestamp
- type Vertex_Uint32
- type Vertex_Uint64
Constants ¶
This section is empty.
Variables ¶
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.
var File_graph_v1_graph_proto protoreflect.FileDescriptor
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: "Put", Handler: _LanternService_Put_Handler, }, { MethodName: "PutVertex", Handler: _LanternService_PutVertex_Handler, }, { MethodName: "PutEdge", Handler: _LanternService_PutEdge_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 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) GetExpiration ¶
func (x *Edge) GetExpiration() *timestamppb.Timestamp
func (*Edge) ProtoMessage ¶
func (*Edge) ProtoMessage()
func (*Edge) ProtoReflect ¶
func (x *Edge) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
func (*GetVertexResponse) Descriptor
deprecated
func (*GetVertexResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVertexResponse.ProtoReflect.Descriptor instead.
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"` Stats *GraphStats `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"` // contains filtered or unexported fields }
func (*Graph) Descriptor
deprecated
func (*Graph) GetStats ¶
func (x *Graph) GetStats() *GraphStats
func (*Graph) GetVertices ¶
func (*Graph) ProtoMessage ¶
func (*Graph) ProtoMessage()
func (*Graph) ProtoReflect ¶
func (x *Graph) ProtoReflect() protoreflect.Message
type GraphStats ¶
type GraphStats struct { VertexDegrees []*GraphStats_VertexDegree `protobuf:"bytes,1,rep,name=vertex_degrees,json=vertexDegrees,proto3" json:"vertex_degrees,omitempty"` // contains filtered or unexported fields }
func (*GraphStats) Descriptor
deprecated
func (*GraphStats) Descriptor() ([]byte, []int)
Deprecated: Use GraphStats.ProtoReflect.Descriptor instead.
func (*GraphStats) GetVertexDegrees ¶
func (x *GraphStats) GetVertexDegrees() []*GraphStats_VertexDegree
func (*GraphStats) ProtoMessage ¶
func (*GraphStats) ProtoMessage()
func (*GraphStats) ProtoReflect ¶
func (x *GraphStats) ProtoReflect() protoreflect.Message
func (*GraphStats) Reset ¶
func (x *GraphStats) Reset()
func (*GraphStats) String ¶
func (x *GraphStats) String() string
type GraphStats_VertexDegree ¶
type GraphStats_VertexDegree struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` In uint32 `protobuf:"varint,2,opt,name=in,proto3" json:"in,omitempty"` Out uint32 `protobuf:"varint,3,opt,name=out,proto3" json:"out,omitempty"` // contains filtered or unexported fields }
func (*GraphStats_VertexDegree) Descriptor
deprecated
func (*GraphStats_VertexDegree) Descriptor() ([]byte, []int)
Deprecated: Use GraphStats_VertexDegree.ProtoReflect.Descriptor instead.
func (*GraphStats_VertexDegree) GetIn ¶
func (x *GraphStats_VertexDegree) GetIn() uint32
func (*GraphStats_VertexDegree) GetKey ¶
func (x *GraphStats_VertexDegree) GetKey() string
func (*GraphStats_VertexDegree) GetOut ¶
func (x *GraphStats_VertexDegree) GetOut() uint32
func (*GraphStats_VertexDegree) ProtoMessage ¶
func (*GraphStats_VertexDegree) ProtoMessage()
func (*GraphStats_VertexDegree) ProtoReflect ¶
func (x *GraphStats_VertexDegree) ProtoReflect() protoreflect.Message
func (*GraphStats_VertexDegree) Reset ¶
func (x *GraphStats_VertexDegree) Reset()
func (*GraphStats_VertexDegree) String ¶
func (x *GraphStats_VertexDegree) 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"` TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"` // contains filtered or unexported fields }
func (*IlluminateRequest) Descriptor
deprecated
func (*IlluminateRequest) Descriptor() ([]byte, []int)
Deprecated: Use IlluminateRequest.ProtoReflect.Descriptor instead.
func (*IlluminateRequest) GetSeed ¶
func (x *IlluminateRequest) GetSeed() string
func (*IlluminateRequest) GetStep ¶
func (x *IlluminateRequest) GetStep() uint32
func (*IlluminateRequest) GetTopK ¶
func (x *IlluminateRequest) GetTopK() uint32
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) Put(ctx context.Context, in *PutRequest, opts ...grpc.CallOption) (*PutResponse, error) PutVertex(ctx context.Context, in *PutVertexRequest, opts ...grpc.CallOption) (*PutVertexResponse, error) PutEdge(ctx context.Context, in *PutEdgeRequest, opts ...grpc.CallOption) (*PutEdgeResponse, 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.
func NewLanternServiceClient ¶
func NewLanternServiceClient(cc grpc.ClientConnInterface) LanternServiceClient
type LanternServiceServer ¶
type LanternServiceServer interface { Illuminate(context.Context, *IlluminateRequest) (*IlluminateResponse, error) GetVertex(context.Context, *GetVertexRequest) (*GetVertexResponse, error) Put(context.Context, *PutRequest) (*PutResponse, error) PutVertex(context.Context, *PutVertexRequest) (*PutVertexResponse, error) PutEdge(context.Context, *PutEdgeRequest) (*PutEdgeResponse, error) // contains filtered or unexported methods }
LanternServiceServer is the server API for LanternService service. All implementations must embed UnimplementedLanternServiceServer for forward compatibility
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 PutRequest ¶
type PutRequest struct { Graph *Graph `protobuf:"bytes,1,opt,name=graph,proto3" json:"graph,omitempty"` // contains filtered or unexported fields }
func (*PutRequest) Descriptor
deprecated
func (*PutRequest) Descriptor() ([]byte, []int)
Deprecated: Use PutRequest.ProtoReflect.Descriptor instead.
func (*PutRequest) GetGraph ¶
func (x *PutRequest) GetGraph() *Graph
func (*PutRequest) ProtoMessage ¶
func (*PutRequest) ProtoMessage()
func (*PutRequest) ProtoReflect ¶
func (x *PutRequest) ProtoReflect() protoreflect.Message
func (*PutRequest) Reset ¶
func (x *PutRequest) Reset()
func (*PutRequest) String ¶
func (x *PutRequest) String() string
type PutResponse ¶
type PutResponse struct { Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=graph.v1.Status" json:"status,omitempty"` // contains filtered or unexported fields }
func (*PutResponse) Descriptor
deprecated
func (*PutResponse) Descriptor() ([]byte, []int)
Deprecated: Use PutResponse.ProtoReflect.Descriptor instead.
func (*PutResponse) GetStatus ¶
func (x *PutResponse) GetStatus() Status
func (*PutResponse) ProtoMessage ¶
func (*PutResponse) ProtoMessage()
func (*PutResponse) ProtoReflect ¶
func (x *PutResponse) ProtoReflect() protoreflect.Message
func (*PutResponse) Reset ¶
func (x *PutResponse) Reset()
func (*PutResponse) String ¶
func (x *PutResponse) 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
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type UnimplementedLanternServiceServer ¶
type UnimplementedLanternServiceServer struct { }
UnimplementedLanternServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedLanternServiceServer) GetVertex ¶
func (UnimplementedLanternServiceServer) GetVertex(context.Context, *GetVertexRequest) (*GetVertexResponse, error)
func (UnimplementedLanternServiceServer) Illuminate ¶
func (UnimplementedLanternServiceServer) Illuminate(context.Context, *IlluminateRequest) (*IlluminateResponse, error)
func (UnimplementedLanternServiceServer) Put ¶
func (UnimplementedLanternServiceServer) Put(context.Context, *PutRequest) (*PutResponse, error)
func (UnimplementedLanternServiceServer) PutEdge ¶
func (UnimplementedLanternServiceServer) PutEdge(context.Context, *PutEdgeRequest) (*PutEdgeResponse, error)
func (UnimplementedLanternServiceServer) PutVertex ¶
func (UnimplementedLanternServiceServer) PutVertex(context.Context, *PutVertexRequest) (*PutVertexResponse, error)
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) GetExpiration ¶
func (x *Vertex) GetExpiration() *timestamppb.Timestamp
func (*Vertex) GetFloat32 ¶
func (*Vertex) GetFloat64 ¶
func (*Vertex) GetString_ ¶
func (*Vertex) GetTimestamp ¶
func (x *Vertex) GetTimestamp() *timestamppb.Timestamp
func (*Vertex) ProtoMessage ¶
func (*Vertex) ProtoMessage()
func (*Vertex) ProtoReflect ¶
func (x *Vertex) ProtoReflect() protoreflect.Message
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"`
}