Documentation ¶
Index ¶
Constants ¶
View Source
const ( HTML_BODY = `` /* 1016-byte string literal not displayed */ HTML_END = `` /* 237-byte string literal not displayed */ )
View Source
const ( MULTICAST_ADDRESS = "239.6.6.6:1337" MULTICAST_BUFFER_SIZE = 4096 NODE_ANNOUNCE_COMMAND = "\x01" HEADER = "\x60\x0D\xF0\x0D" MIN_PACKET_SIZE = 6 EXPIRE_TIMEOUT_SEC = 50 ANNOUNCE_INTERVAL_SEC = 10 )
Variables ¶
This section is empty.
Functions ¶
func NewAnnouncePacket ¶
Types ¶
type FileServerResponseInterceptor ¶
type FileServerResponseInterceptor struct { OriginalWriter http.ResponseWriter IndexBuffer *bytes.Buffer }
func (*FileServerResponseInterceptor) Header ¶
func (f *FileServerResponseInterceptor) Header() http.Header
func (*FileServerResponseInterceptor) Write ¶
func (f *FileServerResponseInterceptor) Write(content []byte) (int, error)
func (*FileServerResponseInterceptor) WriteHeader ¶
func (f *FileServerResponseInterceptor) WriteHeader(status int)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.