feat: remove stream related constants
This commit is contained in:
@ -13,8 +13,6 @@ const (
|
|||||||
H_STATUS = "status"
|
H_STATUS = "status"
|
||||||
H_DATA_FORMAT = "data-format"
|
H_DATA_FORMAT = "data-format"
|
||||||
H_ROUTE = "route"
|
H_ROUTE = "route"
|
||||||
H_XSTREAM = "x-stream"
|
|
||||||
H_XSTREAM_KEY = "x-stream-key"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -49,11 +47,6 @@ type DataFormat struct {
|
|||||||
Encoding string
|
Encoding string
|
||||||
}
|
}
|
||||||
|
|
||||||
type StreamInfo struct {
|
|
||||||
TotalBytes uint64
|
|
||||||
BufferSize uint16
|
|
||||||
}
|
|
||||||
|
|
||||||
func TextDataFormat() *DataFormat {
|
func TextDataFormat() *DataFormat {
|
||||||
return &DataFormat{Format: DF_TEXT, Encoding: E_UTF8}
|
return &DataFormat{Format: DF_TEXT, Encoding: E_UTF8}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user