server

package
v0.0.0-...-71876dc Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupGetMapByIds

func GroupGetMapByIds(ids []int) (map[int]Group, error)

Types

type Group

type Group struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Ctime int    `json:"ctime"`
}

func (*Group) Create

func (g *Group) Create() error

func (*Group) Delete

func (g *Group) Delete() error

func (*Group) Detail

func (g *Group) Detail() error

func (*Group) List

func (g *Group) List(keyword string, offset, limit int) ([]Group, error)

func (*Group) Total

func (g *Group) Total(keyword string) (int, error)

func (*Group) Update

func (g *Group) Update() error

type Server

type Server struct {
	ID        int    `json:"id"`
	GroupId   int    `json:"group_id"`
	GroupName string `json:"group_name"`
	Name      string `json:"name"`
	Ip        string `json:"ip"`
	SSHPort   int    `json:"ssh_port"`
	Ctime     int    `json:"ctime"`
}

func ServerGetListByGroupIds

func ServerGetListByGroupIds(groupIds []int) ([]Server, error)

func (*Server) CreateOrUpdate

func (s *Server) CreateOrUpdate() error

func (*Server) Delete

func (s *Server) Delete() error

func (*Server) Detail

func (s *Server) Detail() error

func (*Server) List

func (s *Server) List(keyword string, offset, limit int) ([]Server, error)

func (*Server) Total

func (s *Server) Total(keyword string) (int, error)

Jump to

Keyboard shortcuts

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