Files
go-sam-go/stream.go
Call me Phil 0e35eb2df3 Clean up and fixes
-  Define and use a few constants for the sake of code maintainability
- Change log package name to logger so it better reflects its purpose
- Fix depredations
-  Drop unused private methods and constants
- Create an auxiliary func newFromPrimary() to reduce code duplicacy. Also straight away type conversion doesn't seem to type-check. Got to explicitly create a new struct instance.
2025-03-12 21:39:23 +00:00

19 lines
340 B
Go

// package sam3 wraps the original sam3 API from github.com/go-i2p/sam3
package sam3
import (
"github.com/go-i2p/go-sam-go/stream"
)
// Represents a streaming session.
type StreamSession struct {
*stream.StreamSession
}
/*
func (s *StreamSession) Cancel() chan *StreamSession {
ch := make(chan *StreamSession)
ch <- s
return ch
}*/