Documentation
¶
Index ¶
- Constants
- type Storage
- func (s Storage) AddRelayStatistic(id string, success bool, offline bool, ms int, bytes int64)
- func (s Storage) GetAdminPassword() (string, error)
- func (s Storage) GetAdminSalt() ([]byte, error)
- func (s Storage) GetHistoryStatistic(page, pageSize int, sortBy string, sortType string) ([]*model.RelayStatistic, int64, error)
- func (s Storage) GetHistoryStatisticByID(id string) (*model.RelayStatistic, error)
- func (s Storage) GetKeyValue(key string) (string, error)
- func (s Storage) GetRelayStatistic(id string) (*model.RelayStatistic, error)
- func (s Storage) IncrementRelayOfflineCount(id string)
- func (s Storage) SetAdminPassword(password string) error
- func (s Storage) SetAdminSalt(salt []byte) error
- func (s Storage) SetKeyValue(key string, value string) error
- func (s Storage) UpdateConnectionCustomName(id string, customName string) error
Constants ¶
View Source
const (
RelayStatisticBucket = "relay_statistic"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func (Storage) AddRelayStatistic ¶
func (Storage) GetAdminPassword ¶
func (Storage) GetAdminSalt ¶
func (Storage) GetHistoryStatistic ¶
func (Storage) GetHistoryStatisticByID ¶
func (s Storage) GetHistoryStatisticByID(id string) (*model.RelayStatistic, error)
func (Storage) GetRelayStatistic ¶
func (s Storage) GetRelayStatistic(id string) (*model.RelayStatistic, error)
func (Storage) IncrementRelayOfflineCount ¶
func (Storage) SetAdminPassword ¶
func (Storage) SetAdminSalt ¶
Click to show internal directories.
Click to hide internal directories.