Documentation
¶
Index ¶
- Variables
- func ConvertToDBGraphQL(gql mgraphql.GraphQL) gen.Graphql
- func ConvertToDBGraphQLResponse(resp mgraphql.GraphQLResponse) gen.GraphqlResponse
- func ConvertToModelGraphQL(gql gen.Graphql) *mgraphql.GraphQL
- func ConvertToModelGraphQLAssert(a gen.GraphqlAssert) mgraphql.GraphQLAssert
- func ConvertToModelGraphQLHeader(h gen.GraphqlHeader) mgraphql.GraphQLHeader
- func ConvertToModelGraphQLResponse(resp gen.GraphqlResponse) mgraphql.GraphQLResponse
- type GraphQLAssertService
- func (s GraphQLAssertService) Create(ctx context.Context, assert *mgraphql.GraphQLAssert) error
- func (s GraphQLAssertService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s GraphQLAssertService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
- func (s GraphQLAssertService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQLAssert, error)
- func (s GraphQLAssertService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
- func (s GraphQLAssertService) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
- func (s GraphQLAssertService) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
- func (s GraphQLAssertService) TX(tx *sql.Tx) GraphQLAssertService
- func (s GraphQLAssertService) Update(ctx context.Context, assert *mgraphql.GraphQLAssert) error
- func (s GraphQLAssertService) UpdateDelta(ctx context.Context, id idwrap.IDWrap, deltaValue *string, deltaEnabled *bool, ...) error
- type GraphQLHeaderService
- func (s GraphQLHeaderService) Create(ctx context.Context, header *mgraphql.GraphQLHeader) error
- func (s GraphQLHeaderService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s GraphQLHeaderService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
- func (s GraphQLHeaderService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQLHeader, error)
- func (s GraphQLHeaderService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
- func (s GraphQLHeaderService) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
- func (s GraphQLHeaderService) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
- func (s GraphQLHeaderService) TX(tx *sql.Tx) GraphQLHeaderService
- func (s GraphQLHeaderService) Update(ctx context.Context, header *mgraphql.GraphQLHeader) error
- func (s GraphQLHeaderService) UpdateDelta(ctx context.Context, header *mgraphql.GraphQLHeader) error
- type GraphQLResponseService
- func (s GraphQLResponseService) Create(ctx context.Context, resp mgraphql.GraphQLResponse) error
- func (s GraphQLResponseService) CreateAssert(ctx context.Context, assert mgraphql.GraphQLResponseAssert) error
- func (s GraphQLResponseService) CreateHeader(ctx context.Context, header mgraphql.GraphQLResponseHeader) error
- func (s GraphQLResponseService) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mgraphql.GraphQLResponseAssert, error)
- func (s GraphQLResponseService) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponseAssert, error)
- func (s GraphQLResponseService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLResponse, error)
- func (s GraphQLResponseService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponse, error)
- func (s GraphQLResponseService) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mgraphql.GraphQLResponseHeader, error)
- func (s GraphQLResponseService) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponseHeader, error)
- func (s GraphQLResponseService) TX(tx *sql.Tx) GraphQLResponseService
- type GraphQLService
- func (s GraphQLService) Create(ctx context.Context, gql *mgraphql.GraphQL) error
- func (s GraphQLService) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (s GraphQLService) Get(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQL, error)
- func (s GraphQLService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQL, error)
- func (s GraphQLService) GetWorkspaceID(ctx context.Context, id idwrap.IDWrap) (idwrap.IDWrap, error)
- func (s GraphQLService) Reader() *Reader
- func (s GraphQLService) TX(tx *sql.Tx) GraphQLService
- func (s GraphQLService) Update(ctx context.Context, gql *mgraphql.GraphQL) error
- type Reader
- func (r *Reader) Get(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQL, error)
- func (r *Reader) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQL, error)
- func (r *Reader) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mgraphql.GraphQL, error)
- func (r *Reader) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQL, error)
- func (r *Reader) GetGraphQLVersionsByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLVersion, error)
- func (r *Reader) GetWorkspaceID(ctx context.Context, id idwrap.IDWrap) (idwrap.IDWrap, error)
- type Writer
- func (w *Writer) Create(ctx context.Context, gql *mgraphql.GraphQL) error
- func (w *Writer) CreateGraphQLVersion(ctx context.Context, graphqlID, createdBy idwrap.IDWrap, ...) (*mgraphql.GraphQLVersion, error)
- func (w *Writer) Delete(ctx context.Context, id idwrap.IDWrap) error
- func (w *Writer) Update(ctx context.Context, gql *mgraphql.GraphQL) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoGraphQLAssertFound = errors.New("no graphql assert found")
View Source
var ErrNoGraphQLFound = sql.ErrNoRows
View Source
var ErrNoGraphQLHeaderFound = errors.New("no graphql header found")
View Source
var ErrNoGraphQLResponseFound = errors.New("no graphql response found")
Functions ¶
func ConvertToDBGraphQLResponse ¶
func ConvertToDBGraphQLResponse(resp mgraphql.GraphQLResponse) gen.GraphqlResponse
func ConvertToModelGraphQLAssert ¶
func ConvertToModelGraphQLAssert(a gen.GraphqlAssert) mgraphql.GraphQLAssert
func ConvertToModelGraphQLHeader ¶
func ConvertToModelGraphQLHeader(h gen.GraphqlHeader) mgraphql.GraphQLHeader
func ConvertToModelGraphQLResponse ¶
func ConvertToModelGraphQLResponse(resp gen.GraphqlResponse) mgraphql.GraphQLResponse
Types ¶
type GraphQLAssertService ¶
type GraphQLAssertService struct {
// contains filtered or unexported fields
}
func NewGraphQLAssertService ¶
func NewGraphQLAssertService(queries *gen.Queries) GraphQLAssertService
func (GraphQLAssertService) Create ¶
func (s GraphQLAssertService) Create(ctx context.Context, assert *mgraphql.GraphQLAssert) error
func (GraphQLAssertService) GetByGraphQLID ¶
func (s GraphQLAssertService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
func (GraphQLAssertService) GetByID ¶
func (s GraphQLAssertService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQLAssert, error)
func (GraphQLAssertService) GetByIDs ¶
func (s GraphQLAssertService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
func (GraphQLAssertService) GetDeltasByParentID ¶
func (s GraphQLAssertService) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
func (GraphQLAssertService) GetDeltasByWorkspaceID ¶
func (s GraphQLAssertService) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLAssert, error)
Delta methods
func (GraphQLAssertService) TX ¶
func (s GraphQLAssertService) TX(tx *sql.Tx) GraphQLAssertService
func (GraphQLAssertService) Update ¶
func (s GraphQLAssertService) Update(ctx context.Context, assert *mgraphql.GraphQLAssert) error
type GraphQLHeaderService ¶
type GraphQLHeaderService struct {
// contains filtered or unexported fields
}
func NewGraphQLHeaderService ¶
func NewGraphQLHeaderService(queries *gen.Queries) GraphQLHeaderService
func (GraphQLHeaderService) Create ¶
func (s GraphQLHeaderService) Create(ctx context.Context, header *mgraphql.GraphQLHeader) error
func (GraphQLHeaderService) GetByGraphQLID ¶
func (s GraphQLHeaderService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
func (GraphQLHeaderService) GetByID ¶
func (s GraphQLHeaderService) GetByID(ctx context.Context, id idwrap.IDWrap) (*mgraphql.GraphQLHeader, error)
func (GraphQLHeaderService) GetByIDs ¶
func (s GraphQLHeaderService) GetByIDs(ctx context.Context, ids []idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
func (GraphQLHeaderService) GetDeltasByParentID ¶
func (s GraphQLHeaderService) GetDeltasByParentID(ctx context.Context, parentID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
func (GraphQLHeaderService) GetDeltasByWorkspaceID ¶
func (s GraphQLHeaderService) GetDeltasByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLHeader, error)
Delta methods
func (GraphQLHeaderService) TX ¶
func (s GraphQLHeaderService) TX(tx *sql.Tx) GraphQLHeaderService
func (GraphQLHeaderService) Update ¶
func (s GraphQLHeaderService) Update(ctx context.Context, header *mgraphql.GraphQLHeader) error
func (GraphQLHeaderService) UpdateDelta ¶
func (s GraphQLHeaderService) UpdateDelta(ctx context.Context, header *mgraphql.GraphQLHeader) error
type GraphQLResponseService ¶
type GraphQLResponseService struct {
// contains filtered or unexported fields
}
func NewGraphQLResponseService ¶
func NewGraphQLResponseService(queries *gen.Queries) GraphQLResponseService
func (GraphQLResponseService) Create ¶
func (s GraphQLResponseService) Create(ctx context.Context, resp mgraphql.GraphQLResponse) error
func (GraphQLResponseService) CreateAssert ¶
func (s GraphQLResponseService) CreateAssert(ctx context.Context, assert mgraphql.GraphQLResponseAssert) error
func (GraphQLResponseService) CreateHeader ¶
func (s GraphQLResponseService) CreateHeader(ctx context.Context, header mgraphql.GraphQLResponseHeader) error
func (GraphQLResponseService) GetAssertsByResponseID ¶
func (s GraphQLResponseService) GetAssertsByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mgraphql.GraphQLResponseAssert, error)
func (GraphQLResponseService) GetAssertsByWorkspaceID ¶
func (s GraphQLResponseService) GetAssertsByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponseAssert, error)
func (GraphQLResponseService) GetByGraphQLID ¶
func (s GraphQLResponseService) GetByGraphQLID(ctx context.Context, graphqlID idwrap.IDWrap) ([]mgraphql.GraphQLResponse, error)
func (GraphQLResponseService) GetByWorkspaceID ¶
func (s GraphQLResponseService) GetByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponse, error)
func (GraphQLResponseService) GetHeadersByResponseID ¶
func (s GraphQLResponseService) GetHeadersByResponseID(ctx context.Context, responseID idwrap.IDWrap) ([]mgraphql.GraphQLResponseHeader, error)
func (GraphQLResponseService) GetHeadersByWorkspaceID ¶
func (s GraphQLResponseService) GetHeadersByWorkspaceID(ctx context.Context, workspaceID idwrap.IDWrap) ([]mgraphql.GraphQLResponseHeader, error)
func (GraphQLResponseService) TX ¶
func (s GraphQLResponseService) TX(tx *sql.Tx) GraphQLResponseService
type GraphQLService ¶
type GraphQLService struct {
// contains filtered or unexported fields
}
func (GraphQLService) GetByWorkspaceID ¶
func (GraphQLService) GetWorkspaceID ¶
func (GraphQLService) Reader ¶
func (s GraphQLService) Reader() *Reader
func (GraphQLService) TX ¶
func (s GraphQLService) TX(tx *sql.Tx) GraphQLService
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func NewReaderFromQueries ¶
func (*Reader) GetByWorkspaceID ¶
func (*Reader) GetDeltasByParentID ¶
func (*Reader) GetDeltasByWorkspaceID ¶
func (*Reader) GetGraphQLVersionsByGraphQLID ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func NewWriterFromQueries ¶
func (*Writer) CreateGraphQLVersion ¶
Click to show internal directories.
Click to hide internal directories.