service

package
v0.0.26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const RuleKey = "subscribe:rule"

Variables

Functions

func CreateInitServerFn added in v0.0.24

func CreateInitServerFn(ps *Subscribe) rpc.InitServer

Types

type Subscribe

type Subscribe struct {
	// contains filtered or unexported fields
}

func NewSubscribe

func NewSubscribe(rdb *redis.Client) *Subscribe

func (*Subscribe) Close

func (s *Subscribe) Close(ctx context.Context, payload *pb.SubscribeRequest) (*pb.StateReply, error)

func (*Subscribe) List

func (*Subscribe) Open

func (s *Subscribe) Open(ctx context.Context, payload *pb.SubscribeRequest) (*pb.StateReply, error)

func (*Subscribe) Register

func (s *Subscribe) Register(ctx context.Context, payload *pb.SubscribeRequest) (*pb.StateReply, error)

func (*Subscribe) Status added in v0.0.4

func (s *Subscribe) Status(ctx context.Context, payload *pb.SubscribeRequest) (*pb.StateReply, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL