service

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

func NewManage

func NewManage(db *sqlx.DB, logger *zap.Logger, bot *rulebot.RuleBot, webhook string, wfClient pb.WorkflowClient) *Message

func (*Message) Create

func (m *Message) Create(ctx context.Context, payload *pb.MessageRequest) (*pb.MessageReply, error)

func (*Message) Delete

func (m *Message) Delete(ctx context.Context, payload *pb.MessageRequest) (*pb.TextReply, error)

func (*Message) Get

func (m *Message) Get(ctx context.Context, payload *pb.MessageRequest) (*pb.TextReply, error)

func (*Message) List

func (m *Message) List(ctx context.Context, payload *pb.MessageRequest) (*pb.MessageListReply, error)

func (*Message) Run

func (m *Message) Run(ctx context.Context, payload *pb.MessageRequest) (*pb.TextReply, error)

func (*Message) Send

func (m *Message) Send(ctx context.Context, payload *pb.MessageRequest) (*pb.TextReply, error)

Jump to

Keyboard shortcuts

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