Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAbuseClientFlags(f []cli.Flag) []cli.Flag
- func RegisterAbuseFlags(f []cli.Flag) []cli.Flag
- func RegisterGRPCFlags(f []cli.Flag) []cli.Flag
- func RegisterStoplistFlags(f []cli.Flag) []cli.Flag
- type Abuse
- type AbuseClient
- type GRPCServer
- type Server
- type Stoplist
- type Store
- type StoreProvider
Constants ¶
View Source
const ( AbuseClientHostFlag = "abuse-host" AbuseClientPortFlag = "abuse-port" )
View Source
const (
AbuseUseFlag = "use-abuse"
)
View Source
const (
StoplistPathFlag = "stoplist-path"
)
Variables ¶
View Source
var (
ErrAbuse = errors.New("store: torrent abused")
)
View Source
var (
ErrNotFound = errors.New("store: torrent not found")
)
Functions ¶
Types ¶
type AbuseClient ¶
type AbuseClient struct {
// contains filtered or unexported fields
}
func NewAbuseClient ¶
func NewAbuseClient(c *cli.Context) *AbuseClient
func (*AbuseClient) Close ¶
func (s *AbuseClient) Close()
func (*AbuseClient) Get ¶
func (s *AbuseClient) Get() (as.AbuseStoreClient, error)
type GRPCServer ¶
type GRPCServer struct {
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer(c *cli.Context, s *Server) *GRPCServer
func (*GRPCServer) Close ¶
func (s *GRPCServer) Close()
func (*GRPCServer) Serve ¶
func (s *GRPCServer) Serve() error
type Server ¶
type Server struct { pb.UnimplementedTorrentStoreServer // contains filtered or unexported fields }
func (*Server) Touch ¶
func (s *Server) Touch(ctx context.Context, in *pb.TouchRequest) (*pb.TouchReply, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.