Documentation ¶
Index ¶
- Constants
- Variables
- func Send(client *nsqd.ClientV2, frameType int32, data []byte) error
- func SendMessage(client *nsqd.ClientV2, msg *nsqd.Message, buf *bytes.Buffer, needFlush bool) error
- func SendNow(client *nsqd.ClientV2, frameType int32, data []byte) error
- type ConsumeOffset
- type NsqdServer
- type Uint64Slice
Constants ¶
View Source
const ( FailedOnNotLeader = consistence.ErrFailedOnNotLeader FailedOnNotWritable = consistence.ErrFailedOnNotWritable )
View Source
const ( TLSNotRequired = iota TLSRequiredExceptHTTP TLSRequired )
View Source
const ( E_INVALID = "E_INVALID" E_TOPIC_NOT_EXIST = "E_TOPIC_NOT_EXIST" )
Variables ¶
Functions ¶
func SendMessage ¶
Types ¶
type ConsumeOffset ¶
func (*ConsumeOffset) FromBytes ¶
func (self *ConsumeOffset) FromBytes(s []byte) error
func (*ConsumeOffset) FromString ¶
func (self *ConsumeOffset) FromString(s string) error
func (*ConsumeOffset) ToString ¶
func (self *ConsumeOffset) ToString() string
type NsqdServer ¶
type NsqdServer struct {
// contains filtered or unexported fields
}
func (*NsqdServer) Exit ¶
func (s *NsqdServer) Exit()
func (*NsqdServer) GetNsqdInstance ¶
func (s *NsqdServer) GetNsqdInstance() *nsqd.NSQD
func (*NsqdServer) Main ¶
func (s *NsqdServer) Main()
type Uint64Slice ¶
type Uint64Slice []uint64
func (Uint64Slice) Len ¶
func (s Uint64Slice) Len() int
func (Uint64Slice) Less ¶
func (s Uint64Slice) Less(i, j int) bool
func (Uint64Slice) Swap ¶
func (s Uint64Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.