gocql: github.com/gocql/gocql/internal/streams Index | Files

package streams

import "github.com/gocql/gocql/internal/streams"

Index

Package Files

streams.go

type IDGenerator Uses

type IDGenerator struct {
    NumStreams int
    // contains filtered or unexported fields
}

IDGenerator tracks and allocates streams which are in use.

func New Uses

func New(protocol int) *IDGenerator

func (*IDGenerator) Available Uses

func (s *IDGenerator) Available() int

func (*IDGenerator) Clear Uses

func (s *IDGenerator) Clear(stream int) (inuse bool)

func (*IDGenerator) GetStream Uses

func (s *IDGenerator) GetStream() (int, bool)

func (*IDGenerator) String Uses

func (s *IDGenerator) String() string

Package streams imports 3 packages (graph) and is imported by 4 packages. Updated 2016-07-15. Refresh now. Tools for package owners.