crud

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedGolinksServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(m *mapper.MapperManager, port string, debug bool) (*Server, error)

func (*Server) DeleteUrl

func (s *Server) DeleteUrl(ctx context.Context, req *pb.DeleteUrlRequest) (*emptypb.Empty, error)

func (*Server) GetName

func (s *Server) GetName() string

func (*Server) GetUrl

func (s *Server) GetUrl(ctx context.Context, req *pb.GetUrlRequest) (*pb.PathUrlPair, error)

func (*Server) ListUrls

func (s *Server) ListUrls(ctx context.Context, req *emptypb.Empty) (*pb.ListUrlsResponse, error)

func (*Server) PutUrl

func (s *Server) PutUrl(ctx context.Context, req *pb.PathUrlPair) (*pb.PathUrlPair, error)

func (*Server) Start

func (s *Server) Start(errChan chan<- error)

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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