service

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LanternServer

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

func NewLanternServer

func NewLanternServer(service *LanternService, server *grpc.Server, listener net.Listener) *LanternServer

func (*LanternServer) Run

func (s *LanternServer) Run(ctx context.Context) error

type LanternService

type LanternService struct {
	UnimplementedLanternServiceServer
	// contains filtered or unexported fields
}

func NewLanternService

func NewLanternService(cache *graph.GraphCache[string, *Vertex]) *LanternService

func (*LanternService) AddEdge added in v0.4.0

func (s *LanternService) AddEdge(ctx context.Context, request *AddEdgeRequest) (*AddEdgeResponse, error)

func (*LanternService) DeleteEdge added in v0.4.0

func (s *LanternService) DeleteEdge(ctx context.Context, in *DeleteEdgeRequest) (*DeleteEdgeResponse, error)

func (*LanternService) DeleteVertex added in v0.4.0

func (s *LanternService) DeleteVertex(ctx context.Context, in *DeleteVertexRequest) (*DeleteVertexResponse, error)

func (*LanternService) GetEdge

func (s *LanternService) GetEdge(ctx context.Context, request *GetEdgeRequest) (*GetEdgeResponse, error)

func (*LanternService) GetVertex

func (s *LanternService) GetVertex(ctx context.Context, request *GetVertexRequest) (*GetVertexResponse, error)

func (*LanternService) Illuminate

func (s *LanternService) Illuminate(ctx context.Context, request *IlluminateRequest) (*IlluminateResponse, error)

func (*LanternService) PutEdge

func (s *LanternService) PutEdge(ctx context.Context, request *PutEdgeRequest) (*PutEdgeResponse, error)

func (*LanternService) PutVertex

func (s *LanternService) PutVertex(ctx context.Context, request *PutVertexRequest) (*PutVertexResponse, error)

Jump to

Keyboard shortcuts

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