Documentation ¶
Index ¶
- Constants
- type APIKey
- type APIKeys
- type Audit
- type Compression
- type Container
- type Cors
- type Handler
- type Item
- type Logger
- type Path
- type Redirect
- type Service
- func (s *Service) Append(paths *Item)
- func (s *Service) FormatURL(URI string) string
- func (s *Service) GetPaths() Container
- func (s *Service) IncreaseVersion()
- func (s *Service) Init(ctx context.Context) (err error)
- func (s *Service) IsCheckDue(t time.Time) bool
- func (s *Service) Lookup(aPath *contract.Path) *Path
- func (s *Service) SyncChanges(ctx context.Context) (bool, error)
- type Settings
Constants ¶
View Source
const (
PathFileName = "paths.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type Compression ¶
type Compression struct {
MinSizeKb int `yaml:"MinSizeKb,omitempty"`
}
type Cors ¶
type Cors struct { AllowCredentials *bool `yaml:"AllowCredentials,omitempty"` AllowHeaders *[]string `yaml:"AllowHeaders,omitempty"` AllowMethods *[]string `yaml:"AllowMethods,omitempty"` AllowOrigins *[]string `yaml:"AllowOrigins,omitempty"` ExposeHeaders *[]string `yaml:"ExposeHeaders,omitempty"` MaxAge *int64 `yaml:"MaxAge,omitempty"` }
func DefaultCors ¶
func DefaultCors() *Cors
type Path ¶
type Path struct { contract.Path `yaml:",inline"` Settings `yaml:",inline"` Handler *Handler `yaml:"Handler" json:"Handler"` Internal bool `json:"Internal,omitempty" yaml:"Internal,omitempty" ` ContentURL string `json:"ContentURL,omitempty" yaml:"ContentURL,omitempty" ` SourceURL string `yaml:"-" json:"-"` Version *version.Control `yaml:"-" json:"-"` }
func (*Path) CorsEnabled ¶
func (*Path) IsRevealMetric ¶
type Redirect ¶
type Redirect struct { StorageURL string `yaml:"StorageURL,omitempty"` ///github.com/viant/datly/v0/app/lambda/lambda/proxy.go MinSizeKb int `yaml:"MinSizeKb,omitempty"` TimeToLiveMs int `yaml:"TimeToLiveMs,omitempty"` }
func (*Redirect) TimeToLive ¶
type Service ¶
type Service struct { Container Container URL string MbusPaths []*Path // contains filtered or unexported fields }
func (*Service) IncreaseVersion ¶
func (s *Service) IncreaseVersion()
IncreaseVersion increase version of the all routes
type Settings ¶
type Settings struct { APIKey *APIKey `json:",omitempty" yaml:"APIKey,omitempty"` Cors *Cors `json:",omitempty" yaml:"Cors,omitempty"` Compression *Compression `json:",omitempty" yaml:"Compression,omitempty"` Redirect *Redirect `json:",omitempty" yaml:"PreSign,omitempty"` Logger *Logger `json:",omitempty" yaml:"Logger,omitempty"` RevealMetric *bool With []string `yaml:"With" json:"With"` }
Click to show internal directories.
Click to hide internal directories.