cc

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListNamespaceResp

type ListNamespaceResp struct {
	RetHeader *RetHeader `json:"ret_header"`
	Data      []string   `json:"data"`
}

ListNamespaceResp list names of all namespace response

type QueryNamespaceResp

type QueryNamespaceResp struct {
	RetHeader *RetHeader          `json:"ret_header"`
	Data      []*models.Namespace `json:"data"`
}

QueryNamespaceResp query namespace response

type QueryReq

type QueryReq struct {
	Names []string `json:"names"`
}

QueryReq query namespace request

type RetHeader

type RetHeader struct {
	RetCode    int    `json:"ret_code"`
	RetMessage string `json:"ret_message"`
}

RetHeader response header

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server admin server

func NewServer

func NewServer(addr string, cfg *models.CCConfig) (*Server, error)

NewServer constructor of Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Run

func (s *Server) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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