Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { Authenticate(Username string, Password string) (session string, err error) SetConnection(host string) error }
AuthService is an interface to meet the authentication needs
type QueueService ¶
type QueueService interface { Submit(ctx context.Context, session string, url string, depth int, job string) error Get(ctx context.Context, session string) (url string, depth int, job string, err error) SetConnection(host string) error }
QueueService is an interface to meet the queue needs
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server performs the retrieval from Queue and gets the URL contents
func New ¶
func New(authService AuthService, queueService QueueService, storeService StoreService) *Server
New creates a gRPC server instance for Retriever
Click to show internal directories.
Click to hide internal directories.