service

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func CreateInitServerFn added in v0.0.24

func CreateInitServerFn(ps *Message) rpc.InitServer

Types

type Message

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

func NewMessage added in v0.0.24

func NewMessage(
	bus event.Bus,
	logger log.Logger,
	config *config.AppConfig,
	repo repository.MessageRepository,
	workflow pb.WorkflowSvcClient) *Message

func (*Message) Create

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

func (*Message) CreateActionMessage added in v0.0.17

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

func (*Message) Delete

func (m *Message) Delete(ctx 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(ctx context.Context, payload *pb.MessageRequest) (*pb.MessageReply, error)

func (*Message) GetActionMessages added in v0.0.17

func (m *Message) GetActionMessages(ctx context.Context, _ *pb.TextRequest) (*pb.ActionReply, 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