handler

package
v0.0.0-...-ff36db3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIService

type APIService struct {
	Port       string
	Addr       string
	MasterNode string
	Storage    []string
}

APIService Api服务信息.

func NewAPI

func NewAPI() *APIService

NewAPI .

func (*APIService) Read

func (a *APIService) Read(fpath, nodeip string) (fbody []byte, err error)

Read 读取消息.

func (*APIService) RemoveStorageNode

func (a *APIService) RemoveStorageNode(nodeip string)

func (*APIService) SelectNode

func (a *APIService) SelectNode(nodenum int) []string

func (*APIService) Start

func (a *APIService) Start()

Start .

func (*APIService) Write

func (a *APIService) Write(fhash string, body []byte, nodeip string) (storePath string, err error)

Write 发送消息.

Jump to

Keyboard shortcuts

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