Documentation ¶ Index ¶ func RequestID(ctx context.Context) uint64 type Job type Server func NewServer(addr string, secret string) *Server func (s *Server) Handle(patter, method string, h http.Handler) func (s *Server) ListenAndServe() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RequestID ¶ func RequestID(ctx context.Context) uint64 Types ¶ type Job ¶ type Job interface { Run(context.Context) error } type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(addr string, secret string) *Server func (*Server) Handle ¶ func (s *Server) Handle(patter, method string, h http.Handler) func (*Server) ListenAndServe ¶ func (s *Server) ListenAndServe() error Source Files ¶ View all Source files context.go job.go server.go Click to show internal directories. Click to hide internal directories.