source

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, options option.SourceOptions) (adapter.Source, error)

Types

type Local

type Local struct {
	// contains filtered or unexported fields
}

func NewLocal

func NewLocal(ctx context.Context, options option.SourceOptions) (*Local, error)

func (*Local) Fetch

func (s *Local) Fetch(path string, requestBody adapter.FetchRequestBody) (body *adapter.FetchResponseBody, err error)

func (*Local) LastUpdated

func (s *Local) LastUpdated(path string) time.Time

func (*Local) Path

func (s *Local) Path(urlParams map[string]string) (sourcePath string, err error)

type Remote

type Remote struct {
	// contains filtered or unexported fields
}

func NewRemote

func NewRemote(ctx context.Context, options option.SourceOptions) (*Remote, error)

func (*Remote) Fetch

func (s *Remote) Fetch(path string, requestBody adapter.FetchRequestBody) (body *adapter.FetchResponseBody, err error)

func (*Remote) LastUpdated

func (s *Remote) LastUpdated(_ string) time.Time

func (*Remote) Path

func (s *Remote) Path(urlParams map[string]string) (sourcePath string, err error)

Jump to

Keyboard shortcuts

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