fetchrequest

package
v0.0.0-...-0640eb1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 NewRepository

func NewRepository(conv Converter) *repository

NewRepository 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

func (FetchRequestsCollection) Len

func (r FetchRequestsCollection) Len() int

Len missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL