Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTTPProto1 = "HTTP/1.1" HTTPProto2 = "HTTP/2.0" )
Variables ¶
View Source
var ( ErrProjectIDMustBeSet = errors.New("sender: project ID must be set") ErrRequestNotFound = errors.New("sender: request not found") )
Functions ¶
This section is empty.
Types ¶
type FindRequestsFilter ¶
type FindRequestsFilter struct { ProjectID ulid.ULID OnlyInScope bool SearchExpr search.Expression }
type HTTPTransport ¶
type HTTPTransport struct{}
type Repository ¶
type Repository interface { FindSenderRequestByID(ctx context.Context, id ulid.ULID) (Request, error) FindSenderRequests(ctx context.Context, filter FindRequestsFilter, scope *scope.Scope) ([]Request, error) StoreSenderRequest(ctx context.Context, req Request) error StoreResponseLog(ctx context.Context, reqLogID ulid.ULID, resLog reqlog.ResponseLog) error DeleteSenderRequests(ctx context.Context, projectID ulid.ULID) error }
type Request ¶
type Service ¶
type Service interface { FindRequestByID(ctx context.Context, id ulid.ULID) (Request, error) FindRequests(ctx context.Context) ([]Request, error) CreateOrUpdateRequest(ctx context.Context, req Request) (Request, error) CloneFromRequestLog(ctx context.Context, reqLogID ulid.ULID) (Request, error) DeleteRequests(ctx context.Context, projectID ulid.ULID) error SendRequest(ctx context.Context, id ulid.ULID) (Request, error) SetActiveProjectID(ulid.ULID) SetFindReqsFilter(filter FindRequestsFilter) FindReqsFilter() FindRequestsFilter }
func NewService ¶
Click to show internal directories.
Click to hide internal directories.