Documentation
¶
Index ¶
- func NewService(ctx context.Context, arg NewServiceArg) *client
- type BatchClassifyRequest
- type BatchClassifyResponse
- type BatchParseJobRequest
- type BatchParseJobResponse
- type ClassifyRequest
- type ClassifyResponse
- type EmailInput
- type NewServiceArg
- type ParseJobRequest
- type ParseJobResponse
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(ctx context.Context, arg NewServiceArg) *client
Types ¶
type BatchClassifyRequest ¶
type BatchClassifyRequest struct {
Inputs map[string]*ClassifyRequest `json:"inputs"`
}
type BatchClassifyResponse ¶
type BatchParseJobRequest ¶
type BatchParseJobRequest struct {
Inputs map[string]*BatchParseJobRequest `json:"inputs"`
}
type BatchParseJobResponse ¶
type BatchParseJobResponse struct {
Results map[string]*ParseJobResponse `json:"results"`
}
type ClassifyRequest ¶
type ClassifyRequest = EmailInput
type ClassifyResponse ¶
type ClassifyResponse struct {
Result bool `json:"result"`
}
type EmailInput ¶
type NewServiceArg ¶
type ParseJobRequest ¶
type ParseJobRequest = EmailInput
type ParseJobResponse ¶
type Service ¶
type Service interface { // Classify if the input is a recruiting email or not Classify(input *ClassifyRequest) (*ClassifyResponse, error) // Classify if the inputs recruiting emails or not BatchClassify(inputs *BatchClassifyRequest) (*BatchClassifyResponse, error) // Parse if the input meets the classification ParseJob(input *ParseJobRequest) (*ParseJobResponse, error) // Parse if the inputs are spam or not BatchParseJob(req *BatchParseJobRequest) (*BatchParseJobResponse, error) }
Click to show internal directories.
Click to hide internal directories.