usp_file

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileAdapter

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

func NewFileAdapter

func NewFileAdapter(conf FileConfig) (*FileAdapter, chan struct{}, error)

func (*FileAdapter) Close

func (a *FileAdapter) Close() error

type FileConfig

type FileConfig struct {
	ClientOptions   uspclient.ClientOptions `json:"client_options" yaml:"client_options"`
	WriteTimeoutSec uint64                  `json:"write_timeout_sec,omitempty" yaml:"write_timeout_sec,omitempty"`
	FilePath        string                  `json:"file_path" yaml:"file_path"`
	NoFollow        bool                    `json:"no_follow" yaml:"no_follow"`
}

func (*FileConfig) Validate

func (c *FileConfig) Validate() error

Jump to

Keyboard shortcuts

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