subscribe

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Subscribe)

func WithDBClient

func WithDBClient(dbClient *dao.DBClient) Option

type Subscribe

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

func New

func New(opts ...Option) *Subscribe

func (*Subscribe) Convert

func (s *Subscribe) Convert(subscribe model.Subscribe) apistructs.Subscribe

func (*Subscribe) GetSubscribes

func (s *Subscribe) GetSubscribes(req apistructs.GetSubscribeReq) ([]apistructs.Subscribe, error)

func (*Subscribe) Subscribe

func (s *Subscribe) Subscribe(req apistructs.CreateSubscribeReq) (uint64, error)

func (*Subscribe) UnSubscribe

func (s *Subscribe) UnSubscribe(req apistructs.UnSubscribeReq) error

Jump to

Keyboard shortcuts

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