Versions in this module Expand all Collapse all v0 v0.5.1 Nov 23, 2018 Changes in this version + var ErrNameAlreadyTaken = errors.New("name already taken") + func MirrorFromRPC(m *Mirror) (*mirrors.Mirror, error) + func MirrorToRPC(m *mirrors.Mirror) (*Mirror, error) + func StreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) error + func UnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error) + type CLI struct + func (c *CLI) AddMirror(ctx context.Context, in *Mirror) (*AddMirrorReply, error) + func (c *CLI) ChangeStatus(ctx context.Context, in *ChangeStatusRequest) (*empty.Empty, error) + func (c *CLI) Close() error + func (c *CLI) GetVersion(context.Context, *empty.Empty) (*VersionReply, error) + func (c *CLI) List(ctx context.Context, in *empty.Empty) (*MirrorListReply, error) + func (c *CLI) MatchMirror(ctx context.Context, in *MatchRequest) (*MatchReply, error) + func (c *CLI) MirrorInfo(ctx context.Context, in *MirrorIDRequest) (*Mirror, error) + func (c *CLI) Ping(context.Context, *empty.Empty) (*empty.Empty, error) + func (c *CLI) RefreshRepository(ctx context.Context, in *RefreshRepositoryRequest) (*empty.Empty, error) + func (c *CLI) Reload(ctx context.Context, in *empty.Empty) (*empty.Empty, error) + func (c *CLI) RemoveMirror(ctx context.Context, in *MirrorIDRequest) (*empty.Empty, error) + func (c *CLI) ScanMirror(ctx context.Context, in *ScanMirrorRequest) (*ScanMirrorReply, error) + func (c *CLI) SetDatabase(r *database.Redis) + func (c *CLI) SetSignals(sig chan<- os.Signal) + func (c *CLI) Start() error + func (c *CLI) StatsFile(ctx context.Context, in *StatsFileRequest) (*StatsFileReply, error) + func (c *CLI) StatsMirror(ctx context.Context, in *StatsMirrorRequest) (*StatsMirrorReply, error) + func (c *CLI) UpdateMirror(ctx context.Context, in *Mirror) (*empty.Empty, error) + func (c *CLI) Upgrade(ctx context.Context, in *empty.Empty) (*empty.Empty, error)