Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareHashArgon ¶
CompareHashArgon compares hash to the argon2 hash of password. It returns a non-nil error if they DO NOT match, and nil err if they do.
Types ¶
type Argon2Parameters ¶
type Argon2Parameters struct { Memory uint32 Iterations uint32 Parallelism uint8 // recomended salt length of at least 16 bytes. SaltLen uint32 // recomended key length of at leasr 32 bytes KeyLen uint32 }
Argon2Parameters holds the setttings for using Argon2.
type MediaStream ¶
MediaStream is a ReadSeekCloser with a the addition of a `Type() StreamType` method.
type Server ¶
type Server struct { // embeds an http.Server for the incomming network connection. *http.Server // contains filtered or unexported fields }
Server is an http server that also serves streaming media such as video.
func (*Server) Streams ¶
func (s *Server) Streams() ([]MediaStream, error)
Streams return a slice containing all of the available MediaStreams.
type StreamType ¶
type StreamType int
StreamType denotes the type of the media stream.
const ( AudioStream StreamType = iota VideoStream )
func (*StreamType) Audio ¶
func (st *StreamType) Audio() bool
func (*StreamType) StreamVideo ¶
func (st *StreamType) StreamVideo(p []byte) (n int, stopFunc func(), err error)
func (*StreamType) Type ¶
func (st *StreamType) Type() StreamType
func (*StreamType) Video ¶
func (st *StreamType) Video() bool
Click to show internal directories.
Click to hide internal directories.