util

package
v3.6.0-rerelease-amazo... Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBrandName

func GetBrandName() string

func LocalNodeId

func LocalNodeId() string

LocalNodeId returns the node ID of the local node.

Types

type Config

type Config struct {
	Info struct {
		Name string `json:"name"`
	} `json:"info"`
}

type ReadSeekCloseWrapper

type ReadSeekCloseWrapper struct {
	io.ReadCloser
	io.Seeker
	// contains filtered or unexported fields
}

func WrapReadSeekClose

func WrapReadSeekClose(reader io.ReadCloser) *ReadSeekCloseWrapper

func (*ReadSeekCloseWrapper) Close

func (r *ReadSeekCloseWrapper) Close() error

func (*ReadSeekCloseWrapper) Drain

func (r *ReadSeekCloseWrapper) Drain()

func (*ReadSeekCloseWrapper) Read

func (r *ReadSeekCloseWrapper) Read(p []byte) (n int, err error)

func (*ReadSeekCloseWrapper) Seek

func (r *ReadSeekCloseWrapper) Seek(offset int64, whence int) (int64, error)

Jump to

Keyboard shortcuts

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