Documentation
¶
Index ¶
- Variables
- func ConvertToDBHTTP(http mhttp.HTTP) gen.Http
- func ConvertToDBHttpBodyRaw(body mhttp.HTTPBodyRaw) gen.HttpBodyRaw
- func ConvertToDBHttpResponse(response mhttp.HTTPResponse) gen.HttpResponse
- func ConvertToModelHTTP(http gen.Http) *mhttp.HTTP
- func ConvertToModelHttpBodyRaw(dbBody gen.HttpBodyRaw) mhttp.HTTPBodyRaw
- func ConvertToModelHttpResponse(response gen.HttpResponse) mhttp.HTTPResponse
- func ConvertToModelHttpVersion(version gen.HttpVersion) *mhttp.HttpVersion
- func DeserializeAssertGenToModel(assert gen.HttpAssert) mhttp.HTTPAssert
- func DeserializeBodyFormGenToModel(row gen.GetHTTPBodyFormsRow) mhttp.HTTPBodyForm
- func DeserializeBodyUrlEncodedGenToModel(body gen.HttpBodyUrlencoded) mhttp.HTTPBodyUrlencoded
- func DeserializeHeaderGenToModel(header gen.HttpHeader) mhttp.HTTPHeader
- func DeserializeSearchParamGenToModel(dbParam gen.GetHTTPSearchParamsRow) mhttp.HTTPSearchParam
- func SerializeAssertModelToGen(assert mhttp.HTTPAssert) gen.HttpAssert
- func SerializeBodyFormModelToGen(body mhttp.HTTPBodyForm) gen.HttpBodyForm
- func SerializeBodyUrlEncodedModelToGen(body mhttp.HTTPBodyUrlencoded) gen.HttpBodyUrlencoded
- func SerializeHeaderModelToGen(header mhttp.HTTPHeader) gen.HttpHeader
- func SerializeSearchParamModelToGen(param mhttp.HTTPSearchParam) gen.CreateHTTPSearchParamParams
- type AssertReader
- func (r *AssertReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (r *AssertReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (r *AssertReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPAssert, error)
- func (r *AssertReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPAssert, error)
- func (r *AssertReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- type AssertWriter
- func (w *AssertWriter) Create(ctx context.Context, assert *mhttp.HTTPAssert) error
- func (w *AssertWriter) CreateBulk(ctx context.Context, asserts []mhttp.HTTPAssert) error
- func (w *AssertWriter) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *AssertWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *AssertWriter) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (w *AssertWriter) Update(ctx context.Context, assert *mhttp.HTTPAssert) error
- func (w *AssertWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaValue *string, deltaEnabled *bool, ...) error
- func (w *AssertWriter) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float32) error
- type BodyFormReader
- func (r *BodyFormReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (r *BodyFormReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (r *BodyFormReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyForm, error)
- func (r *BodyFormReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyForm, error)
- func (r *BodyFormReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (r *BodyFormReader) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPBodyFormStreamingRow, error)
- type BodyFormWriter
- func (w *BodyFormWriter) Create(ctx context.Context, body *mhttp.HTTPBodyForm) error
- func (w *BodyFormWriter) CreateBulk(ctx context.Context, bodyForms []mhttp.HTTPBodyForm) error
- func (w *BodyFormWriter) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *BodyFormWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *BodyFormWriter) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (w *BodyFormWriter) Update(ctx context.Context, body *mhttp.HTTPBodyForm) error
- func (w *BodyFormWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- func (w *BodyFormWriter) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float32) error
- type BodyRawReader
- type BodyRawWriter
- func (w *BodyRawWriter) Create(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (w *BodyRawWriter) CreateDelta(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (w *BodyRawWriter) CreateFull(ctx context.Context, body *mhttp.HTTPBodyRaw) (*mhttp.HTTPBodyRaw, error)
- func (w *BodyRawWriter) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *BodyRawWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *BodyRawWriter) Update(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (w *BodyRawWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- type BodyUrlEncodedReader
- func (r *BodyUrlEncodedReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (r *BodyUrlEncodedReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (r *BodyUrlEncodedReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyUrlencoded, error)
- func (r *BodyUrlEncodedReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyUrlencoded, error)
- func (r *BodyUrlEncodedReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- type BodyUrlEncodedWriter
- func (w *BodyUrlEncodedWriter) Create(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
- func (w *BodyUrlEncodedWriter) CreateBulk(ctx context.Context, bodyUrlEncodeds []mhttp.HTTPBodyUrlencoded) error
- func (w *BodyUrlEncodedWriter) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *BodyUrlEncodedWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *BodyUrlEncodedWriter) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (w *BodyUrlEncodedWriter) Update(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
- func (w *BodyUrlEncodedWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- type HTTPService
- func (hs HTTPService) CheckUserBelongsToHttp(ctx context.Context, httpID, userID idwrap.IDWrap) (bool, error)
- func (hs HTTPService) Create(ctx context.Context, http *mhttp.HTTP) error
- func (hs HTTPService) CreateHttpVersion(ctx context.Context, httpID, createdBy idwrap.IDWrap, ...) (*mhttp.HttpVersion, error)
- func (hs HTTPService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (hs HTTPService) FindByURLAndMethod(ctx context.Context, workspaceID idwrap.IDWrap, url, method string) (*mhttp.HTTP, error)
- func (hs HTTPService) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTP, error)
- func (hs HTTPService) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (hs HTTPService) GetBodyFormsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (hs HTTPService) GetBodyRawByHttpID(ctx context.Context, httpID idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
- func (hs HTTPService) GetBodyUrlEncodedByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (hs HTTPService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (hs HTTPService) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (hs HTTPService) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (hs HTTPService) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (hs HTTPService) GetHttpVersionsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HttpVersion, error)
- func (hs HTTPService) GetSearchParamsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (hs HTTPService) GetSnapshotsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (hs HTTPService) GetWorkspaceID(ctx context.Context, id idwrap.IDWrap) (idwrap.IDWrap, error)
- func (hs HTTPService) Reader() *Reader
- func (hs HTTPService) TX(tx *sql.Tx) HTTPService
- func (hs HTTPService) Update(ctx context.Context, http *mhttp.HTTP) error
- func (hs HTTPService) Upsert(ctx context.Context, http *mhttp.HTTP) error
- type HeaderReader
- func (r *HeaderReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (r *HeaderReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (r *HeaderReader) GetByID(ctx context.Context, headerID idwrap.IDWrap) (mhttp.HTTPHeader, error)
- func (r *HeaderReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- type HeaderWriter
- func (w *HeaderWriter) Create(ctx context.Context, header *mhttp.HTTPHeader) error
- func (w *HeaderWriter) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, headers []mhttp.HTTPHeader) error
- func (w *HeaderWriter) Delete(ctx context.Context, headerID idwrap.IDWrap) error
- func (w *HeaderWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *HeaderWriter) Update(ctx context.Context, header *mhttp.HTTPHeader) error
- func (w *HeaderWriter) UpdateDelta(ctx context.Context, headerID idwrap.IDWrap, ...) error
- func (w *HeaderWriter) UpdateOrder(ctx context.Context, headerID idwrap.IDWrap, displayOrder float64) error
- type HttpAssertService
- func (s *HttpAssertService) Create(ctx context.Context, assert *mhttp.HTTPAssert) error
- func (s *HttpAssertService) CreateBulk(ctx context.Context, asserts []mhttp.HTTPAssert) error
- func (s *HttpAssertService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpAssertService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (s *HttpAssertService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (s *HttpAssertService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (s *HttpAssertService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPAssert, error)
- func (s *HttpAssertService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPAssert, error)
- func (s *HttpAssertService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
- func (s *HttpAssertService) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpAssertService) TX(tx *sql.Tx) *HttpAssertService
- func (s *HttpAssertService) Update(ctx context.Context, assert *mhttp.HTTPAssert) error
- func (s *HttpAssertService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaValue *string, deltaEnabled *bool, ...) error
- func (s *HttpAssertService) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float32) error
- type HttpBodyFormService
- func (s *HttpBodyFormService) Create(ctx context.Context, body *mhttp.HTTPBodyForm) error
- func (s *HttpBodyFormService) CreateBulk(ctx context.Context, bodyForms []mhttp.HTTPBodyForm) error
- func (s *HttpBodyFormService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpBodyFormService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (s *HttpBodyFormService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (s *HttpBodyFormService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (s *HttpBodyFormService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyForm, error)
- func (s *HttpBodyFormService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyForm, error)
- func (s *HttpBodyFormService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
- func (s *HttpBodyFormService) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPBodyFormStreamingRow, error)
- func (s *HttpBodyFormService) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpBodyFormService) TX(tx *sql.Tx) *HttpBodyFormService
- func (s *HttpBodyFormService) Update(ctx context.Context, body *mhttp.HTTPBodyForm) error
- func (s *HttpBodyFormService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- func (s *HttpBodyFormService) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float32) error
- type HttpBodyRawService
- func (s *HttpBodyRawService) Create(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) CreateDelta(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) CreateFull(ctx context.Context, body *mhttp.HTTPBodyRaw) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpBodyRawService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (s *HttpBodyRawService) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) Reader() *BodyRawReader
- func (s *HttpBodyRawService) TX(tx *sql.Tx) *HttpBodyRawService
- func (s *HttpBodyRawService) Update(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- func (s *HttpBodyRawService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
- type HttpBodyUrlEncodedService
- func (s *HttpBodyUrlEncodedService) Create(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
- func (s *HttpBodyUrlEncodedService) CreateBulk(ctx context.Context, bodyUrlEncodeds []mhttp.HTTPBodyUrlencoded) error
- func (s *HttpBodyUrlEncodedService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpBodyUrlEncodedService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (s *HttpBodyUrlEncodedService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (s *HttpBodyUrlEncodedService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (s *HttpBodyUrlEncodedService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyUrlencoded, error)
- func (s *HttpBodyUrlEncodedService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyUrlencoded, error)
- func (s *HttpBodyUrlEncodedService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
- func (s *HttpBodyUrlEncodedService) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpBodyUrlEncodedService) TX(tx *sql.Tx) *HttpBodyUrlEncodedService
- func (s *HttpBodyUrlEncodedService) Update(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
- func (s *HttpBodyUrlEncodedService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- type HttpHeaderService
- func (h HttpHeaderService) Create(ctx context.Context, header *mhttp.HTTPHeader) error
- func (h HttpHeaderService) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, headers []mhttp.HTTPHeader) error
- func (h HttpHeaderService) Delete(ctx context.Context, headerID idwrap.IDWrap) error
- func (h HttpHeaderService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (h HttpHeaderService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (h HttpHeaderService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (h HttpHeaderService) GetByID(ctx context.Context, headerID idwrap.IDWrap) (mhttp.HTTPHeader, error)
- func (h HttpHeaderService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
- func (h HttpHeaderService) TX(tx *sql.Tx) HttpHeaderService
- func (h HttpHeaderService) Update(ctx context.Context, header *mhttp.HTTPHeader) error
- func (h HttpHeaderService) UpdateDelta(ctx context.Context, headerID idwrap.IDWrap, ...) error
- func (h HttpHeaderService) UpdateOrder(ctx context.Context, headerID idwrap.IDWrap, displayOrder float64) error
- type HttpResponseReader
- func (r *HttpResponseReader) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPResponse, error)
- func (r *HttpResponseReader) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (r *HttpResponseReader) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (r *HttpResponseReader) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (r *HttpResponseReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
- func (r *HttpResponseReader) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
- func (r *HttpResponseReader) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- func (r *HttpResponseReader) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- func (r *HttpResponseReader) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- type HttpResponseService
- func (hrs HttpResponseService) Create(ctx context.Context, response mhttp.HTTPResponse) error
- func (hrs HttpResponseService) CreateAssert(ctx context.Context, assert mhttp.HTTPResponseAssert) error
- func (hrs HttpResponseService) CreateHeader(ctx context.Context, header mhttp.HTTPResponseHeader) error
- func (hrs HttpResponseService) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPResponse, error)
- func (hrs HttpResponseService) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (hrs HttpResponseService) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (hrs HttpResponseService) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
- func (hrs HttpResponseService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
- func (hrs HttpResponseService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
- func (hrs HttpResponseService) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- func (hrs HttpResponseService) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- func (hrs HttpResponseService) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
- func (s HttpResponseService) Reader() *HttpResponseReader
- func (hrs HttpResponseService) TX(tx *sql.Tx) HttpResponseService
- type HttpResponseWriter
- type HttpSearchParamService
- func (s *HttpSearchParamService) Create(ctx context.Context, param *mhttp.HTTPSearchParam) error
- func (s *HttpSearchParamService) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, params []mhttp.HTTPSearchParam) error
- func (s *HttpSearchParamService) Delete(ctx context.Context, paramID idwrap.IDWrap) error
- func (s *HttpSearchParamService) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (s *HttpSearchParamService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (s *HttpSearchParamService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (s *HttpSearchParamService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPSearchParam, error)
- func (s *HttpSearchParamService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPSearchParam, error)
- func (s *HttpSearchParamService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (s *HttpSearchParamService) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPSearchParamsStreamingRow, error)
- func (s *HttpSearchParamService) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (s *HttpSearchParamService) TX(tx *sql.Tx) *HttpSearchParamService
- func (s *HttpSearchParamService) Update(ctx context.Context, param *mhttp.HTTPSearchParam) error
- func (s *HttpSearchParamService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- func (s *HttpSearchParamService) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float64) error
- type Reader
- func (r *Reader) CheckUserBelongsToHttp(ctx context.Context, httpID, userID idwrap.IDWrap) (bool, error)
- func (r *Reader) FindByURLAndMethod(ctx context.Context, workspaceID idwrap.IDWrap, url, method string) (*mhttp.HTTP, error)
- func (r *Reader) FindHTTPByContentHash(ctx context.Context, workspaceID idwrap.IDWrap, contentHash string) (idwrap.IDWrap, error)
- func (r *Reader) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTP, error)
- func (r *Reader) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (r *Reader) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (r *Reader) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (r *Reader) GetHttpVersionsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HttpVersion, error)
- func (r *Reader) GetSnapshotsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTP, error)
- func (r *Reader) GetWorkspaceID(ctx context.Context, id idwrap.IDWrap) (idwrap.IDWrap, error)
- type SearchParamReader
- func (r *SearchParamReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (r *SearchParamReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (r *SearchParamReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPSearchParam, error)
- func (r *SearchParamReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPSearchParam, error)
- func (r *SearchParamReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
- func (r *SearchParamReader) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPSearchParamsStreamingRow, error)
- type SearchParamWriter
- func (w *SearchParamWriter) Create(ctx context.Context, param *mhttp.HTTPSearchParam) error
- func (w *SearchParamWriter) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, params []mhttp.HTTPSearchParam) error
- func (w *SearchParamWriter) Delete(ctx context.Context, paramID idwrap.IDWrap) error
- func (w *SearchParamWriter) DeleteByHttpID(ctx context.Context, httpID idwrap.IDWrap) error
- func (w *SearchParamWriter) ResetDelta(ctx context.Context, id idwrap.IDWrap) error
- func (w *SearchParamWriter) Update(ctx context.Context, param *mhttp.HTTPSearchParam) error
- func (w *SearchParamWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaKey *string, deltaValue *string, ...) error
- func (w *SearchParamWriter) UpdateOrder(ctx context.Context, id idwrap.IDWrap, httpID idwrap.IDWrap, order float64) error
- type Writer
- func (w *Writer) Create(ctx context.Context, http *mhttp.HTTP) error
- func (w *Writer) CreateHttpVersion(ctx context.Context, httpID, createdBy idwrap.IDWrap, ...) (*mhttp.HttpVersion, error)
- func (w *Writer) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *Writer) Update(ctx context.Context, http *mhttp.HTTP) error
- func (w *Writer) Upsert(ctx context.Context, http *mhttp.HTTP) error
Constants ¶
This section is empty.
Variables ¶
var ErrNoHTTPFound = sql.ErrNoRows
var ErrNoHttpAssertFound = errors.New("no http assert found")
var ErrNoHttpBodyFormFound = errors.New("no http body form found")
var ErrNoHttpBodyRawFound = errors.New("no HTTP body raw found")
var ErrNoHttpBodyUrlEncodedFound = errors.New("no http body url encoded found")
var ErrNoHttpHeaderFound = errors.New("no http header found")
var ErrNoHttpResponseFound = errors.New("no HTTP response found")
var ErrNoHttpSearchParamFound = errors.New("no HttpSearchParam found")
Functions ¶
func ConvertToDBHttpBodyRaw ¶
func ConvertToDBHttpBodyRaw(body mhttp.HTTPBodyRaw) gen.HttpBodyRaw
func ConvertToDBHttpResponse ¶
func ConvertToDBHttpResponse(response mhttp.HTTPResponse) gen.HttpResponse
func ConvertToModelHttpBodyRaw ¶
func ConvertToModelHttpBodyRaw(dbBody gen.HttpBodyRaw) mhttp.HTTPBodyRaw
func ConvertToModelHttpResponse ¶
func ConvertToModelHttpResponse(response gen.HttpResponse) mhttp.HTTPResponse
func ConvertToModelHttpVersion ¶
func ConvertToModelHttpVersion(version gen.HttpVersion) *mhttp.HttpVersion
ConvertToModelHttpVersion converts DB HttpVersion to model HttpVersion
func DeserializeAssertGenToModel ¶
func DeserializeAssertGenToModel(assert gen.HttpAssert) mhttp.HTTPAssert
func DeserializeBodyFormGenToModel ¶
func DeserializeBodyFormGenToModel(row gen.GetHTTPBodyFormsRow) mhttp.HTTPBodyForm
func DeserializeBodyUrlEncodedGenToModel ¶
func DeserializeBodyUrlEncodedGenToModel(body gen.HttpBodyUrlencoded) mhttp.HTTPBodyUrlencoded
func DeserializeHeaderGenToModel ¶
func DeserializeHeaderGenToModel(header gen.HttpHeader) mhttp.HTTPHeader
DeserializeHeaderGenToModel converts DB HttpHeader to model HTTPHeader
func DeserializeSearchParamGenToModel ¶
func DeserializeSearchParamGenToModel(dbParam gen.GetHTTPSearchParamsRow) mhttp.HTTPSearchParam
func SerializeAssertModelToGen ¶
func SerializeAssertModelToGen(assert mhttp.HTTPAssert) gen.HttpAssert
func SerializeBodyFormModelToGen ¶
func SerializeBodyFormModelToGen(body mhttp.HTTPBodyForm) gen.HttpBodyForm
func SerializeBodyUrlEncodedModelToGen ¶
func SerializeBodyUrlEncodedModelToGen(body mhttp.HTTPBodyUrlencoded) gen.HttpBodyUrlencoded
func SerializeHeaderModelToGen ¶
func SerializeHeaderModelToGen(header mhttp.HTTPHeader) gen.HttpHeader
SerializeHeaderModelToGen converts model HTTPHeader to DB HttpHeader
func SerializeSearchParamModelToGen ¶
func SerializeSearchParamModelToGen(param mhttp.HTTPSearchParam) gen.CreateHTTPSearchParamParams
Types ¶
type AssertReader ¶
type AssertReader struct {
// contains filtered or unexported fields
}
func NewAssertReader ¶
func NewAssertReader(db *sql.DB) *AssertReader
func NewAssertReaderFromQueries ¶
func NewAssertReaderFromQueries(queries *gen.Queries) *AssertReader
func (*AssertReader) GetByHttpID ¶
func (r *AssertReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
func (*AssertReader) GetByHttpIDOrdered ¶
func (r *AssertReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
func (*AssertReader) GetByHttpIDs ¶
func (r *AssertReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPAssert, error)
func (*AssertReader) GetByID ¶
func (r *AssertReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPAssert, error)
func (*AssertReader) GetByIDs ¶
func (r *AssertReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
type AssertWriter ¶
type AssertWriter struct {
// contains filtered or unexported fields
}
func NewAssertWriter ¶
func NewAssertWriter(tx gen.DBTX) *AssertWriter
func NewAssertWriterFromQueries ¶
func NewAssertWriterFromQueries(queries *gen.Queries) *AssertWriter
func (*AssertWriter) Create ¶
func (w *AssertWriter) Create(ctx context.Context, assert *mhttp.HTTPAssert) error
func (*AssertWriter) CreateBulk ¶
func (w *AssertWriter) CreateBulk(ctx context.Context, asserts []mhttp.HTTPAssert) error
func (*AssertWriter) DeleteByHttpID ¶
func (*AssertWriter) ResetDelta ¶
func (*AssertWriter) Update ¶
func (w *AssertWriter) Update(ctx context.Context, assert *mhttp.HTTPAssert) error
func (*AssertWriter) UpdateDelta ¶
type BodyFormReader ¶
type BodyFormReader struct {
// contains filtered or unexported fields
}
func NewBodyFormReader ¶
func NewBodyFormReader(db *sql.DB) *BodyFormReader
func NewBodyFormReaderFromQueries ¶
func NewBodyFormReaderFromQueries(queries *gen.Queries) *BodyFormReader
func (*BodyFormReader) GetByHttpID ¶
func (r *BodyFormReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*BodyFormReader) GetByHttpIDOrdered ¶
func (r *BodyFormReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*BodyFormReader) GetByHttpIDs ¶
func (r *BodyFormReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyForm, error)
func (*BodyFormReader) GetByID ¶
func (r *BodyFormReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyForm, error)
func (*BodyFormReader) GetByIDs ¶
func (r *BodyFormReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*BodyFormReader) GetStreaming ¶
func (r *BodyFormReader) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPBodyFormStreamingRow, error)
type BodyFormWriter ¶
type BodyFormWriter struct {
// contains filtered or unexported fields
}
func NewBodyFormWriter ¶
func NewBodyFormWriter(tx gen.DBTX) *BodyFormWriter
func NewBodyFormWriterFromQueries ¶
func NewBodyFormWriterFromQueries(queries *gen.Queries) *BodyFormWriter
func (*BodyFormWriter) Create ¶
func (w *BodyFormWriter) Create(ctx context.Context, body *mhttp.HTTPBodyForm) error
func (*BodyFormWriter) CreateBulk ¶
func (w *BodyFormWriter) CreateBulk(ctx context.Context, bodyForms []mhttp.HTTPBodyForm) error
func (*BodyFormWriter) DeleteByHttpID ¶
func (*BodyFormWriter) ResetDelta ¶
func (*BodyFormWriter) Update ¶
func (w *BodyFormWriter) Update(ctx context.Context, body *mhttp.HTTPBodyForm) error
func (*BodyFormWriter) UpdateDelta ¶
type BodyRawReader ¶
type BodyRawReader struct {
// contains filtered or unexported fields
}
func NewBodyRawReader ¶
func NewBodyRawReader(db *sql.DB) *BodyRawReader
func NewBodyRawReaderFromQueries ¶
func NewBodyRawReaderFromQueries(queries *gen.Queries) *BodyRawReader
func (*BodyRawReader) Get ¶
func (r *BodyRawReader) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
func (*BodyRawReader) GetByHttpID ¶
func (r *BodyRawReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
type BodyRawWriter ¶
type BodyRawWriter struct {
// contains filtered or unexported fields
}
func NewBodyRawWriter ¶
func NewBodyRawWriter(tx gen.DBTX) *BodyRawWriter
func NewBodyRawWriterFromQueries ¶
func NewBodyRawWriterFromQueries(queries *gen.Queries) *BodyRawWriter
func (*BodyRawWriter) Create ¶
func (w *BodyRawWriter) Create(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*BodyRawWriter) CreateDelta ¶
func (w *BodyRawWriter) CreateDelta(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*BodyRawWriter) CreateFull ¶
func (w *BodyRawWriter) CreateFull(ctx context.Context, body *mhttp.HTTPBodyRaw) (*mhttp.HTTPBodyRaw, error)
func (*BodyRawWriter) DeleteByHttpID ¶
func (*BodyRawWriter) Update ¶
func (w *BodyRawWriter) Update(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*BodyRawWriter) UpdateDelta ¶
func (w *BodyRawWriter) UpdateDelta(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
type BodyUrlEncodedReader ¶
type BodyUrlEncodedReader struct {
// contains filtered or unexported fields
}
func NewBodyUrlEncodedReader ¶
func NewBodyUrlEncodedReader(db *sql.DB) *BodyUrlEncodedReader
func NewBodyUrlEncodedReaderFromQueries ¶
func NewBodyUrlEncodedReaderFromQueries(queries *gen.Queries) *BodyUrlEncodedReader
func (*BodyUrlEncodedReader) GetByHttpID ¶
func (r *BodyUrlEncodedReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
func (*BodyUrlEncodedReader) GetByHttpIDOrdered ¶
func (r *BodyUrlEncodedReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
func (*BodyUrlEncodedReader) GetByHttpIDs ¶
func (r *BodyUrlEncodedReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyUrlencoded, error)
func (*BodyUrlEncodedReader) GetByID ¶
func (r *BodyUrlEncodedReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyUrlencoded, error)
func (*BodyUrlEncodedReader) GetByIDs ¶
func (r *BodyUrlEncodedReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
type BodyUrlEncodedWriter ¶
type BodyUrlEncodedWriter struct {
// contains filtered or unexported fields
}
func NewBodyUrlEncodedWriter ¶
func NewBodyUrlEncodedWriter(tx gen.DBTX) *BodyUrlEncodedWriter
func NewBodyUrlEncodedWriterFromQueries ¶
func NewBodyUrlEncodedWriterFromQueries(queries *gen.Queries) *BodyUrlEncodedWriter
func (*BodyUrlEncodedWriter) Create ¶
func (w *BodyUrlEncodedWriter) Create(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
func (*BodyUrlEncodedWriter) CreateBulk ¶
func (w *BodyUrlEncodedWriter) CreateBulk(ctx context.Context, bodyUrlEncodeds []mhttp.HTTPBodyUrlencoded) error
func (*BodyUrlEncodedWriter) DeleteByHttpID ¶
func (*BodyUrlEncodedWriter) ResetDelta ¶
func (*BodyUrlEncodedWriter) Update ¶
func (w *BodyUrlEncodedWriter) Update(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
type HTTPService ¶
type HTTPService struct {
// contains filtered or unexported fields
}
func NewWithWorkspaceUserService ¶
func NewWithWorkspaceUserService(queries *gen.Queries, logger *slog.Logger, wus *sworkspace.UserService) HTTPService
func (HTTPService) CheckUserBelongsToHttp ¶
func (HTTPService) CreateHttpVersion ¶
func (hs HTTPService) CreateHttpVersion(ctx context.Context, httpID, createdBy idwrap.IDWrap, versionName, versionDescription string) (*mhttp.HttpVersion, error)
func (HTTPService) FindByURLAndMethod ¶
func (HTTPService) GetAssertsByHttpID ¶
func (hs HTTPService) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
GetAssertsByHttpID returns all asserts for a given HTTP ID
func (HTTPService) GetBodyFormsByHttpID ¶
func (hs HTTPService) GetBodyFormsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
GetBodyFormsByHttpID returns all body forms for a given HTTP ID
func (HTTPService) GetBodyRawByHttpID ¶
func (hs HTTPService) GetBodyRawByHttpID(ctx context.Context, httpID idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
GetBodyRawByHttpID returns body raw for a given HTTP ID. Returns nil if not found.
func (HTTPService) GetBodyUrlEncodedByHttpID ¶
func (hs HTTPService) GetBodyUrlEncodedByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
GetBodyUrlEncodedByHttpID returns all body url encoded for a given HTTP ID
func (HTTPService) GetByWorkspaceID ¶
func (HTTPService) GetDeltasByParentID ¶
func (HTTPService) GetDeltasByWorkspaceID ¶
func (HTTPService) GetHeadersByHttpID ¶
func (hs HTTPService) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
GetHeadersByHttpID returns all headers for a given HTTP ID
func (HTTPService) GetHttpVersionsByHttpID ¶
func (hs HTTPService) GetHttpVersionsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HttpVersion, error)
func (HTTPService) GetSearchParamsByHttpID ¶
func (hs HTTPService) GetSearchParamsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
GetSearchParamsByHttpID returns all search params for a given HTTP ID
func (HTTPService) GetSnapshotsByWorkspaceID ¶
func (HTTPService) GetWorkspaceID ¶
func (HTTPService) Reader ¶
func (hs HTTPService) Reader() *Reader
func (HTTPService) TX ¶
func (hs HTTPService) TX(tx *sql.Tx) HTTPService
type HeaderReader ¶
type HeaderReader struct {
// contains filtered or unexported fields
}
func NewHeaderReader ¶
func NewHeaderReader(db *sql.DB) *HeaderReader
func NewHeaderReaderFromQueries ¶
func NewHeaderReaderFromQueries(queries *gen.Queries) *HeaderReader
func (*HeaderReader) GetByHttpID ¶
func (r *HeaderReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
func (*HeaderReader) GetByHttpIDOrdered ¶
func (r *HeaderReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
func (*HeaderReader) GetByID ¶
func (r *HeaderReader) GetByID(ctx context.Context, headerID idwrap.IDWrap) (mhttp.HTTPHeader, error)
func (*HeaderReader) GetByIDs ¶
func (r *HeaderReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
type HeaderWriter ¶
type HeaderWriter struct {
// contains filtered or unexported fields
}
func NewHeaderWriter ¶
func NewHeaderWriter(tx gen.DBTX) *HeaderWriter
func NewHeaderWriterFromQueries ¶
func NewHeaderWriterFromQueries(queries *gen.Queries) *HeaderWriter
func (*HeaderWriter) Create ¶
func (w *HeaderWriter) Create(ctx context.Context, header *mhttp.HTTPHeader) error
func (*HeaderWriter) CreateBulk ¶
func (w *HeaderWriter) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, headers []mhttp.HTTPHeader) error
func (*HeaderWriter) DeleteByHttpID ¶
func (*HeaderWriter) Update ¶
func (w *HeaderWriter) Update(ctx context.Context, header *mhttp.HTTPHeader) error
func (*HeaderWriter) UpdateDelta ¶
func (*HeaderWriter) UpdateOrder ¶
type HttpAssertService ¶
type HttpAssertService struct {
// contains filtered or unexported fields
}
func NewHttpAssertService ¶
func NewHttpAssertService(queries *gen.Queries) *HttpAssertService
func (*HttpAssertService) Create ¶
func (s *HttpAssertService) Create(ctx context.Context, assert *mhttp.HTTPAssert) error
func (*HttpAssertService) CreateBulk ¶
func (s *HttpAssertService) CreateBulk(ctx context.Context, asserts []mhttp.HTTPAssert) error
func (*HttpAssertService) DeleteByHttpID ¶
func (*HttpAssertService) GetByHttpID ¶
func (s *HttpAssertService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
func (*HttpAssertService) GetByHttpIDOrdered ¶
func (s *HttpAssertService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
func (*HttpAssertService) GetByHttpIDs ¶
func (s *HttpAssertService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPAssert, error)
func (*HttpAssertService) GetByID ¶
func (s *HttpAssertService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPAssert, error)
func (*HttpAssertService) GetByIDs ¶
func (s *HttpAssertService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPAssert, error)
func (*HttpAssertService) ResetDelta ¶
func (*HttpAssertService) TX ¶
func (s *HttpAssertService) TX(tx *sql.Tx) *HttpAssertService
func (*HttpAssertService) Update ¶
func (s *HttpAssertService) Update(ctx context.Context, assert *mhttp.HTTPAssert) error
func (*HttpAssertService) UpdateDelta ¶
type HttpBodyFormService ¶
type HttpBodyFormService struct {
// contains filtered or unexported fields
}
func NewHttpBodyFormService ¶
func NewHttpBodyFormService(queries *gen.Queries) *HttpBodyFormService
func (*HttpBodyFormService) Create ¶
func (s *HttpBodyFormService) Create(ctx context.Context, body *mhttp.HTTPBodyForm) error
func (*HttpBodyFormService) CreateBulk ¶
func (s *HttpBodyFormService) CreateBulk(ctx context.Context, bodyForms []mhttp.HTTPBodyForm) error
func (*HttpBodyFormService) DeleteByHttpID ¶
func (*HttpBodyFormService) GetByHttpID ¶
func (s *HttpBodyFormService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*HttpBodyFormService) GetByHttpIDOrdered ¶
func (s *HttpBodyFormService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*HttpBodyFormService) GetByHttpIDs ¶
func (s *HttpBodyFormService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyForm, error)
func (*HttpBodyFormService) GetByID ¶
func (s *HttpBodyFormService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyForm, error)
func (*HttpBodyFormService) GetByIDs ¶
func (s *HttpBodyFormService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyForm, error)
func (*HttpBodyFormService) GetStreaming ¶
func (s *HttpBodyFormService) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPBodyFormStreamingRow, error)
func (*HttpBodyFormService) ResetDelta ¶
func (*HttpBodyFormService) TX ¶
func (s *HttpBodyFormService) TX(tx *sql.Tx) *HttpBodyFormService
func (*HttpBodyFormService) Update ¶
func (s *HttpBodyFormService) Update(ctx context.Context, body *mhttp.HTTPBodyForm) error
func (*HttpBodyFormService) UpdateDelta ¶
type HttpBodyRawService ¶
type HttpBodyRawService struct {
// contains filtered or unexported fields
}
func NewHttpBodyRawService ¶
func NewHttpBodyRawService(queries *gen.Queries) *HttpBodyRawService
func (*HttpBodyRawService) Create ¶
func (s *HttpBodyRawService) Create(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) CreateDelta ¶
func (s *HttpBodyRawService) CreateDelta(ctx context.Context, httpID idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) CreateFull ¶
func (s *HttpBodyRawService) CreateFull(ctx context.Context, body *mhttp.HTTPBodyRaw) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) DeleteByHttpID ¶
func (*HttpBodyRawService) Get ¶
func (s *HttpBodyRawService) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) GetByHttpID ¶
func (s *HttpBodyRawService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) Reader ¶
func (s *HttpBodyRawService) Reader() *BodyRawReader
func (*HttpBodyRawService) TX ¶
func (s *HttpBodyRawService) TX(tx *sql.Tx) *HttpBodyRawService
func (*HttpBodyRawService) Update ¶
func (s *HttpBodyRawService) Update(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
func (*HttpBodyRawService) UpdateDelta ¶
func (s *HttpBodyRawService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, rawData []byte) (*mhttp.HTTPBodyRaw, error)
type HttpBodyUrlEncodedService ¶
type HttpBodyUrlEncodedService struct {
// contains filtered or unexported fields
}
func NewHttpBodyUrlEncodedService ¶
func NewHttpBodyUrlEncodedService(queries *gen.Queries) *HttpBodyUrlEncodedService
func (*HttpBodyUrlEncodedService) Create ¶
func (s *HttpBodyUrlEncodedService) Create(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
func (*HttpBodyUrlEncodedService) CreateBulk ¶
func (s *HttpBodyUrlEncodedService) CreateBulk(ctx context.Context, bodyUrlEncodeds []mhttp.HTTPBodyUrlencoded) error
func (*HttpBodyUrlEncodedService) DeleteByHttpID ¶
func (*HttpBodyUrlEncodedService) GetByHttpID ¶
func (s *HttpBodyUrlEncodedService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
func (*HttpBodyUrlEncodedService) GetByHttpIDOrdered ¶
func (s *HttpBodyUrlEncodedService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
func (*HttpBodyUrlEncodedService) GetByHttpIDs ¶
func (s *HttpBodyUrlEncodedService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPBodyUrlencoded, error)
func (*HttpBodyUrlEncodedService) GetByID ¶
func (s *HttpBodyUrlEncodedService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPBodyUrlencoded, error)
func (*HttpBodyUrlEncodedService) GetByIDs ¶
func (s *HttpBodyUrlEncodedService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPBodyUrlencoded, error)
func (*HttpBodyUrlEncodedService) ResetDelta ¶
func (*HttpBodyUrlEncodedService) TX ¶
func (s *HttpBodyUrlEncodedService) TX(tx *sql.Tx) *HttpBodyUrlEncodedService
func (*HttpBodyUrlEncodedService) Update ¶
func (s *HttpBodyUrlEncodedService) Update(ctx context.Context, body *mhttp.HTTPBodyUrlencoded) error
type HttpHeaderService ¶
type HttpHeaderService struct {
// contains filtered or unexported fields
}
func NewHttpHeaderService ¶
func NewHttpHeaderService(queries *gen.Queries) HttpHeaderService
func NewHttpHeaderServiceTX ¶
func (HttpHeaderService) Create ¶
func (h HttpHeaderService) Create(ctx context.Context, header *mhttp.HTTPHeader) error
func (HttpHeaderService) CreateBulk ¶
func (h HttpHeaderService) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, headers []mhttp.HTTPHeader) error
func (HttpHeaderService) DeleteByHttpID ¶
func (HttpHeaderService) GetByHttpID ¶
func (h HttpHeaderService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
func (HttpHeaderService) GetByHttpIDOrdered ¶
func (h HttpHeaderService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
func (HttpHeaderService) GetByID ¶
func (h HttpHeaderService) GetByID(ctx context.Context, headerID idwrap.IDWrap) (mhttp.HTTPHeader, error)
func (HttpHeaderService) GetByIDs ¶
func (h HttpHeaderService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPHeader, error)
func (HttpHeaderService) TX ¶
func (h HttpHeaderService) TX(tx *sql.Tx) HttpHeaderService
func (HttpHeaderService) Update ¶
func (h HttpHeaderService) Update(ctx context.Context, header *mhttp.HTTPHeader) error
func (HttpHeaderService) UpdateDelta ¶
func (HttpHeaderService) UpdateOrder ¶
type HttpResponseReader ¶
type HttpResponseReader struct {
// contains filtered or unexported fields
}
func NewHttpResponseReader ¶
func NewHttpResponseReader(db *sql.DB) *HttpResponseReader
func NewHttpResponseReaderFromQueries ¶
func NewHttpResponseReaderFromQueries(queries *gen.Queries) *HttpResponseReader
func (*HttpResponseReader) Get ¶
func (r *HttpResponseReader) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPResponse, error)
func (*HttpResponseReader) GetAssertsByHttpID ¶
func (r *HttpResponseReader) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
func (*HttpResponseReader) GetAssertsByResponseID ¶
func (r *HttpResponseReader) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
func (*HttpResponseReader) GetAssertsByWorkspaceID ¶
func (r *HttpResponseReader) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
GetAssertsByWorkspaceID retrieves all HTTP response asserts for a given workspace
func (*HttpResponseReader) GetByHttpID ¶
func (r *HttpResponseReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
func (*HttpResponseReader) GetByWorkspaceID ¶
func (r *HttpResponseReader) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
GetByWorkspaceID retrieves all HTTP responses for a given workspace by joining with the http table to filter by workspace_id. This is more efficient than the previous approach of iterating through all HTTP records in the workspace.
func (*HttpResponseReader) GetHeadersByHttpID ¶
func (r *HttpResponseReader) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
func (*HttpResponseReader) GetHeadersByResponseID ¶
func (r *HttpResponseReader) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
func (*HttpResponseReader) GetHeadersByWorkspaceID ¶
func (r *HttpResponseReader) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
GetHeadersByWorkspaceID retrieves all HTTP response headers for a given workspace
type HttpResponseService ¶
type HttpResponseService struct {
// contains filtered or unexported fields
}
func NewHttpResponseService ¶
func NewHttpResponseService(queries *gen.Queries) HttpResponseService
func (HttpResponseService) Create ¶
func (hrs HttpResponseService) Create(ctx context.Context, response mhttp.HTTPResponse) error
func (HttpResponseService) CreateAssert ¶
func (hrs HttpResponseService) CreateAssert(ctx context.Context, assert mhttp.HTTPResponseAssert) error
func (HttpResponseService) CreateHeader ¶
func (hrs HttpResponseService) CreateHeader(ctx context.Context, header mhttp.HTTPResponseHeader) error
func (HttpResponseService) Get ¶
func (hrs HttpResponseService) Get(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPResponse, error)
func (HttpResponseService) GetAssertsByHttpID ¶
func (hrs HttpResponseService) GetAssertsByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
func (HttpResponseService) GetAssertsByResponseID ¶
func (hrs HttpResponseService) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
func (HttpResponseService) GetAssertsByWorkspaceID ¶
func (hrs HttpResponseService) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseAssert, error)
func (HttpResponseService) GetByHttpID ¶
func (hrs HttpResponseService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
func (HttpResponseService) GetByWorkspaceID ¶
func (hrs HttpResponseService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponse, error)
func (HttpResponseService) GetHeadersByHttpID ¶
func (hrs HttpResponseService) GetHeadersByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
func (HttpResponseService) GetHeadersByResponseID ¶
func (hrs HttpResponseService) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
func (HttpResponseService) GetHeadersByWorkspaceID ¶
func (hrs HttpResponseService) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mhttp.HTTPResponseHeader, error)
func (HttpResponseService) Reader ¶
func (s HttpResponseService) Reader() *HttpResponseReader
func (HttpResponseService) TX ¶
func (hrs HttpResponseService) TX(tx *sql.Tx) HttpResponseService
type HttpResponseWriter ¶
type HttpResponseWriter struct {
// contains filtered or unexported fields
}
func NewHttpResponseWriter ¶
func NewHttpResponseWriter(tx gen.DBTX) *HttpResponseWriter
func NewHttpResponseWriterFromQueries ¶
func NewHttpResponseWriterFromQueries(queries *gen.Queries) *HttpResponseWriter
func (*HttpResponseWriter) Create ¶
func (w *HttpResponseWriter) Create(ctx context.Context, response mhttp.HTTPResponse) error
func (*HttpResponseWriter) CreateAssert ¶
func (w *HttpResponseWriter) CreateAssert(ctx context.Context, assert mhttp.HTTPResponseAssert) error
func (*HttpResponseWriter) CreateHeader ¶
func (w *HttpResponseWriter) CreateHeader(ctx context.Context, header mhttp.HTTPResponseHeader) error
type HttpSearchParamService ¶
type HttpSearchParamService struct {
// contains filtered or unexported fields
}
func NewHttpSearchParamService ¶
func NewHttpSearchParamService(queries *gen.Queries) *HttpSearchParamService
func (*HttpSearchParamService) Create ¶
func (s *HttpSearchParamService) Create(ctx context.Context, param *mhttp.HTTPSearchParam) error
func (*HttpSearchParamService) CreateBulk ¶
func (s *HttpSearchParamService) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, params []mhttp.HTTPSearchParam) error
func (*HttpSearchParamService) DeleteByHttpID ¶
func (*HttpSearchParamService) GetByHttpID ¶
func (s *HttpSearchParamService) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*HttpSearchParamService) GetByHttpIDOrdered ¶
func (s *HttpSearchParamService) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*HttpSearchParamService) GetByHttpIDs ¶
func (s *HttpSearchParamService) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPSearchParam, error)
func (*HttpSearchParamService) GetByID ¶
func (s *HttpSearchParamService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPSearchParam, error)
func (*HttpSearchParamService) GetByIDs ¶
func (s *HttpSearchParamService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*HttpSearchParamService) GetStreaming ¶
func (s *HttpSearchParamService) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPSearchParamsStreamingRow, error)
func (*HttpSearchParamService) ResetDelta ¶
func (*HttpSearchParamService) TX ¶
func (s *HttpSearchParamService) TX(tx *sql.Tx) *HttpSearchParamService
func (*HttpSearchParamService) Update ¶
func (s *HttpSearchParamService) Update(ctx context.Context, param *mhttp.HTTPSearchParam) error
func (*HttpSearchParamService) UpdateDelta ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReader ¶
func NewReader(db *sql.DB, logger *slog.Logger, wus *sworkspace.UserService) *Reader
func NewReaderFromQueries ¶
func NewReaderFromQueries(queries *gen.Queries, logger *slog.Logger, wus *sworkspace.UserService) *Reader
func (*Reader) CheckUserBelongsToHttp ¶
func (*Reader) FindByURLAndMethod ¶
func (*Reader) FindHTTPByContentHash ¶
func (*Reader) GetByWorkspaceID ¶
func (*Reader) GetDeltasByParentID ¶
func (*Reader) GetDeltasByWorkspaceID ¶
func (*Reader) GetHttpVersionsByHttpID ¶
func (*Reader) GetSnapshotsByWorkspaceID ¶
type SearchParamReader ¶
type SearchParamReader struct {
// contains filtered or unexported fields
}
func NewSearchParamReader ¶
func NewSearchParamReader(db *sql.DB) *SearchParamReader
func NewSearchParamReaderFromQueries ¶
func NewSearchParamReaderFromQueries(queries *gen.Queries) *SearchParamReader
func (*SearchParamReader) GetByHttpID ¶
func (r *SearchParamReader) GetByHttpID(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*SearchParamReader) GetByHttpIDOrdered ¶
func (r *SearchParamReader) GetByHttpIDOrdered(ctx context.Context, httpID idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*SearchParamReader) GetByHttpIDs ¶
func (r *SearchParamReader) GetByHttpIDs(ctx context.Context, httpIDs []idwrap.IDWrap) (map[idwrap.IDWrap][]mhttp.HTTPSearchParam, error)
func (*SearchParamReader) GetByID ¶
func (r *SearchParamReader) GetByID(ctx context.Context, id idwrap.IDWrap) (*mhttp.HTTPSearchParam, error)
func (*SearchParamReader) GetByIDs ¶
func (r *SearchParamReader) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mhttp.HTTPSearchParam, error)
func (*SearchParamReader) GetStreaming ¶
func (r *SearchParamReader) GetStreaming(ctx context.Context, httpIDs []idwrap.IDWrap, updatedAt int64) ([]gen.GetHTTPSearchParamsStreamingRow, error)
type SearchParamWriter ¶
type SearchParamWriter struct {
// contains filtered or unexported fields
}
func NewSearchParamWriter ¶
func NewSearchParamWriter(tx gen.DBTX) *SearchParamWriter
func NewSearchParamWriterFromQueries ¶
func NewSearchParamWriterFromQueries(queries *gen.Queries) *SearchParamWriter
func (*SearchParamWriter) Create ¶
func (w *SearchParamWriter) Create(ctx context.Context, param *mhttp.HTTPSearchParam) error
func (*SearchParamWriter) CreateBulk ¶
func (w *SearchParamWriter) CreateBulk(ctx context.Context, httpID idwrap.IDWrap, params []mhttp.HTTPSearchParam) error
func (*SearchParamWriter) DeleteByHttpID ¶
func (*SearchParamWriter) ResetDelta ¶
func (*SearchParamWriter) Update ¶
func (w *SearchParamWriter) Update(ctx context.Context, param *mhttp.HTTPSearchParam) error
func (*SearchParamWriter) UpdateDelta ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriterFromQueries ¶
func (*Writer) CreateHttpVersion ¶
Source Files
¶
- assert.go
- assert_reader.go
- assert_writer.go
- body_form.go
- body_form_reader.go
- body_form_writer.go
- body_raw.go
- body_raw_reader.go
- body_raw_writer.go
- body_urlencoded.go
- body_urlencoded_reader.go
- body_urlencoded_writer.go
- header.go
- header_reader.go
- header_writer.go
- http.go
- http_children.go
- mapper.go
- reader.go
- response.go
- response_reader.go
- response_writer.go
- search_param.go
- search_param_reader.go
- search_param_writer.go
- utils.go
- writer.go