subscribe

package
v1.3.0-rc.0...-0a48220 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 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) (string, 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