Documentation ¶
Index ¶
- type Server
- func (s *Server) DeleteUrl(ctx context.Context, req *pb.DeleteUrlRequest) (*emptypb.Empty, error)
- func (s *Server) GetName() string
- func (s *Server) GetUrl(ctx context.Context, req *pb.GetUrlRequest) (*pb.PathUrlPair, error)
- func (s *Server) ListUrls(ctx context.Context, req *emptypb.Empty) (*pb.ListUrlsResponse, error)
- func (s *Server) PutUrl(ctx context.Context, req *pb.PathUrlPair) (*pb.PathUrlPair, error)
- func (s *Server) Start(errChan chan<- error)
- func (s *Server) Stop() error
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 (*Server) GetUrl ¶
func (s *Server) GetUrl(ctx context.Context, req *pb.GetUrlRequest) (*pb.PathUrlPair, error)
func (*Server) PutUrl ¶
func (s *Server) PutUrl(ctx context.Context, req *pb.PathUrlPair) (*pb.PathUrlPair, error)
Click to show internal directories.
Click to hide internal directories.