dao

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

InitConfig ..

Types

type APIClient

type APIClient struct {
}

APIClient ..

var API *APIClient

API ..

func (*APIClient) BatchDeleteServer

func (api *APIClient) BatchDeleteServer(id []uint, organizationID uint64)

BatchDeleteServer ..

func (*APIClient) CreateServer

func (api *APIClient) CreateServer(organizationID uint64)

CreateServer ..

func (*APIClient) DialServer

func (api *APIClient) DialServer(orgID uint64, name, id string)

DialServer ..

func (*APIClient) Do

func (api *APIClient) Do(url, method string, data interface{}) ([]byte, error)

Do ..

func (*APIClient) EditServer

func (api *APIClient) EditServer(id string) error

EditServer ..

func (*APIClient) GetOrganizationByID

func (api *APIClient) GetOrganizationByID(organizationID uint64) (*apiio.MyOrganizationInfo, error)

GetOrganizationByID ..

func (*APIClient) GetOrganizationXRsa

func (api *APIClient) GetOrganizationXRsa(id uint64) (*xrsa.XRsa, error)

GetOrganizationXRsa ..

func (*APIClient) GetServers

func (api *APIClient) GetServers(organizationID uint64) ([]model.Server, error)

GetServers ..

func (*APIClient) GetUser

func (api *APIClient) GetUser(email string) (*apiio.UserInfoResponse, error)

GetUser ..

type Config

type Config struct {
	User      model.User
	MasterKey xcrypto.CryptoKey
	Server    string
}

Config ..

var Conf *Config

Conf ..

func (*Config) GerUserXRsa

func (c *Config) GerUserXRsa() (*xrsa.XRsa, error)

GerUserXRsa ..

func (*Config) Save

func (c *Config) Save() error

Save ..

Jump to

Keyboard shortcuts

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