Documentation ¶
Index ¶
- func FixStatus(condition model.FetchRequestStatusCondition, message *string, ...) *model.FetchRequestStatus
- func NewConverter(authConverter AuthConverter) *converter
- func NewRepository(conv Converter) *repository
- func NewService(repo FetchRequestRepository, client *http.Client) *service
- type AuthConverter
- type Converter
- type Entity
- type FetchRequestRepository
- type FetchRequestsCollection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixStatus ¶
func FixStatus(condition model.FetchRequestStatusCondition, message *string, timestamp time.Time) *model.FetchRequestStatus
FixStatus missing godoc
func NewConverter ¶
func NewConverter(authConverter AuthConverter) *converter
NewConverter missing godoc
func NewService ¶
func NewService(repo FetchRequestRepository, client *http.Client) *service
NewService missing godoc
Types ¶
type AuthConverter ¶
type AuthConverter interface { ToGraphQL(in *model.Auth) (*graphql.Auth, error) InputFromGraphQL(in *graphql.AuthInput) (*model.AuthInput, error) }
AuthConverter missing godoc
type Converter ¶
type Converter interface { ToEntity(in model.FetchRequest) (Entity, error) FromEntity(in Entity) (model.FetchRequest, error) }
Converter missing godoc
type Entity ¶
type Entity struct { ID string `db:"id"` TenantID string `db:"tenant_id"` URL string `db:"url"` SpecID sql.NullString `db:"spec_id"` DocumentID sql.NullString `db:"document_id"` Mode string `db:"mode"` Auth sql.NullString `db:"auth"` Filter sql.NullString `db:"filter"` StatusCondition string `db:"status_condition"` StatusMessage sql.NullString `db:"status_message"` StatusTimestamp time.Time `db:"status_timestamp"` }
Entity missing godoc
type FetchRequestRepository ¶
type FetchRequestRepository interface {
Update(ctx context.Context, item *model.FetchRequest) error
}
FetchRequestRepository missing godoc
type FetchRequestsCollection ¶
type FetchRequestsCollection []Entity
FetchRequestsCollection missing godoc
Click to show internal directories.
Click to hide internal directories.