subscribe

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUserAgentAllowed added in v1.2.14

func IsUserAgentAllowed(ctx context.Context, svc *svc.ServiceContext, userAgent string) bool

Types

type RequestMeta added in v1.2.14

type RequestMeta struct {
	Host       string
	RequestURI string
	UserAgent  string
	ClientIP   string
}

type SubscribeLogic

type SubscribeLogic struct {
	logger.Logger
	// contains filtered or unexported fields
}

func NewSubscribeLogic

func NewSubscribeLogic(ctx context.Context, svc *svc.ServiceContext, request RequestMeta) *SubscribeLogic

func (*SubscribeLogic) Handler added in v1.1.0

func (l *SubscribeLogic) Handler(req *types.SubscribeRequest) (resp *types.SubscribeResponse, err error)

Jump to

Keyboard shortcuts

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