Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Type Type `json:"type"`
Local local.Config `json:"local"`
S3 s3.Config `json:"s3"`
}
Config is the structure of the provider config for a TechDocs instance.
type Provider ¶
type Provider interface {
GetIndexes(ctx context.Context) ([]shared.Index, error)
GetIndex(ctx context.Context, service string) (*shared.Index, error)
GetMarkdown(ctx context.Context, service, path string) (string, error)
GetFile(ctx context.Context, service, path string) ([]byte, error)
}
Provider is the interface, which must be implemented by each TechDocs provider.
Click to show internal directories.
Click to hide internal directories.