service

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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 *logger.Logger, bot *rulebot.RuleBot, webhook string, wfClient pb.WorkflowClient) *Message

func (*Message) Create

func (m *Message) Create(_ context.Context, payload *pb.MessageRequest) (*pb.TextsReply, error)

func (*Message) CreateActionMessage added in v0.0.17

func (m *Message) CreateActionMessage(ctx context.Context, payload *pb.TextRequest) (*pb.StateReply, error)

func (*Message) CreateScriptMessage added in v0.0.17

func (m *Message) CreateScriptMessage(ctx context.Context, payload *pb.TextRequest) (*pb.StateReply, error)

func (*Message) Delete

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

func (*Message) DeleteWorkflowMessage added in v0.0.18

func (m *Message) DeleteWorkflowMessage(ctx context.Context, payload *pb.MessageRequest) (*pb.StateReply, error)

func (*Message) Get

func (m *Message) Get(_ context.Context, payload *pb.MessageRequest) (*pb.MessageReply, error)

func (*Message) GetActionMessages added in v0.0.17

func (m *Message) GetActionMessages(_ context.Context, _ *pb.TextRequest) (*pb.ActionReply, error)

func (*Message) GetScriptMessages added in v0.0.17

func (m *Message) GetScriptMessages(_ context.Context, _ *pb.TextRequest) (*pb.ScriptsReply, error)

func (*Message) List

func (*Message) Run

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

func (*Message) Send

func (m *Message) Send(_ context.Context, payload *pb.MessageRequest) (*pb.StateReply, error)

Jump to

Keyboard shortcuts

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