Documentation ¶
Index ¶
- func Run(configPath string)
- func Setup() *cobra.Command
- func SetupHTTPServer(responder Responder)
- type Client
- type Config
- type JobRequest
- type JobResult
- type Middle
- func (q *Middle) Error(w http.ResponseWriter, r *http.Request, err error, statusCode int)
- func (q *Middle) NotFound(w http.ResponseWriter, r *http.Request)
- func (q *Middle) SubmitJob(ctx context.Context, job *JobRequest) (*JobResult, error)
- func (q *Middle) SubmitJobGRPC(ctx context.Context, job *JobRequest) (*JobResult, error)
- func (q *Middle) SubmitJobHttp(ctx context.Context, job *JobRequest) (*JobResult, error)
- type Responder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupHTTPServer ¶
func SetupHTTPServer(responder Responder)
Types ¶
type JobRequest ¶
type JobResult ¶
type JobResult struct { Request *JobRequest Answer int }
type Middle ¶
type Middle struct { //Actions chan func() //Jobs map[JobState][]*JobStatus //Tracer trace.Tracer BottomClient *bottom.Client BottomGRPCClient *bottom.GRPCClient }
func (*Middle) SubmitJobGRPC ¶
func (*Middle) SubmitJobHttp ¶
Click to show internal directories.
Click to hide internal directories.