notice

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidArgument       = errors.New("invalid argument")
	ErrNoticeList            = errors.New("获取消息列表失败")
	ErrNoticeListCount       = errors.New("获取消息列表总数失败")
	ErrNoticeMemberListCount = errors.New("获取用户阅读消息列表总数失败")
	ErrNoticeNoAppName       = errors.New("项目名称不能为空")
	ErrNoticeNoNamespace     = errors.New("命名空间不能为空")
)

Functions

func MakeHandler

func MakeHandler(svc Service, logger kitlog.Logger) http.Handler

Types

type Service

type Service interface {
	Create(ctx context.Context, req *event.WebhooksRequest) (err error)
	List(ctx context.Context, param map[string]string, page int, limit int) (res map[string]interface{}, err error)
	Tips(ctx context.Context) (res interface{}, err error)
	CountRead(ctx context.Context, param map[string]string) (res map[string]interface{}, err error)
	ClearAll(ctx context.Context, noticeType int) (err error)
	Detail(ctx context.Context, noticeId int) (res interface{}, err error)
}

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewService

func NewService(logger log.Logger, cf *config.Config, amqpClient amqpClient.AmqpClient, store repository.Repository) Service

Jump to

Keyboard shortcuts

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