syncd: github.com/dreamans/syncd/module/server Index | Files

package server

import "github.com/dreamans/syncd/module/server"

Index

Package Files

group.go server.go

func GroupGetMapByIds Uses

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

type Group Uses

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

func (*Group) Create Uses

func (g *Group) Create() error

func (*Group) Delete Uses

func (g *Group) Delete() error

func (*Group) Detail Uses

func (g *Group) Detail() error

func (*Group) List Uses

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

func (*Group) Total Uses

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

func (*Group) Update Uses

func (g *Group) Update() error

type Server Uses

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 Uses

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

func (*Server) CreateOrUpdate Uses

func (s *Server) CreateOrUpdate() error

func (*Server) Delete Uses

func (s *Server) Delete() error

func (*Server) Detail Uses

func (s *Server) Detail() error

func (*Server) List Uses

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

func (*Server) Total Uses

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

Package server imports 4 packages (graph) and is imported by 2 packages. Updated 2019-04-30. Refresh now. Tools for package owners.