storage

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Copyright 2019-2020 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

type LocalStorage struct {
	RootPath string `json:"root_path"` // 定义存储的根目录
}

func NewLocalStorage

func NewLocalStorage() *LocalStorage

func (*LocalStorage) Store

func (c *LocalStorage) Store(file []byte, filename string) (*string, error)

type SFTPStorage

type SFTPStorage struct {
}

func NewSFTPStorage

func NewSFTPStorage() *SFTPStorage

func (*SFTPStorage) Store

func (c *SFTPStorage) Store(file []byte, filename string) (*string, error)

type Storage

type Storage interface {
	Store(file []byte, filename string) (*string, error) // 存储文件
}

func GetClient

func GetClient() Storage

Jump to

Keyboard shortcuts

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