msgservices

package
v0.0.0-...-4e281dc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartChannelServer

func StartChannelServer(log *zap.Logger, isTest bool, pwd string, dbOpt *common.DBOptions, redisOpt *common.RedisOptions, mailerOpt *common.MailerOptions, grpcServerOpt *common.GrpcServerOptions, jwtOpt *common.JWTOptions, oauthOpt *common.OauthOptions, userOpt *common.UserOptions, jaegerTracerOpt *common.JaegerTracerOptions, promOpt *common.PromOptions, elasticOpt *common.ElasticOptions, roleOpt *common.RoleOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartChannelServer - Start Channel Server

func StartMessageServer

func StartMessageServer(log *zap.Logger, isTest bool, pwd string, dbOpt *common.DBOptions, redisOpt *common.RedisOptions, mailerOpt *common.MailerOptions, grpcServerOpt *common.GrpcServerOptions, jwtOpt *common.JWTOptions, oauthOpt *common.OauthOptions, userOpt *common.UserOptions, jaegerTracerOpt *common.JaegerTracerOptions, promOpt *common.PromOptions, elasticOpt *common.ElasticOptions, roleOpt *common.RoleOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartMessageServer - Start Message Server

func StartWorkspaceServer

func StartWorkspaceServer(log *zap.Logger, isTest bool, pwd string, dbOpt *common.DBOptions, redisOpt *common.RedisOptions, mailerOpt *common.MailerOptions, grpcServerOpt *common.GrpcServerOptions, jwtOpt *common.JWTOptions, oauthOpt *common.OauthOptions, userOpt *common.UserOptions, jaegerTracerOpt *common.JaegerTracerOptions, promOpt *common.PromOptions, elasticOpt *common.ElasticOptions, roleOpt *common.RoleOptions, dbService *common.DBService, redisService *common.RedisService, mailerService common.MailerIntf)

StartWorkspaceServer - Start Workspace server

Types

type ChannelService

type ChannelService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient userproto.UserServiceClient
	msgproto.UnimplementedChannelServiceServer
	// contains filtered or unexported fields
}

ChannelService - For accessing channel services

func NewChannelService

func NewChannelService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient userproto.UserServiceClient) *ChannelService

NewChannelService - Create channel service

func (*ChannelService) CreateChannel

CreateChannel - Create channel

func (*ChannelService) DeleteChannel

func (t *ChannelService) DeleteChannel(ctx context.Context, in *commonproto.GetRequest) (*commonproto.Empty, error)

DeleteChannel - Delete channel

func (*ChannelService) GetChannel

GetChannel - Get channel

func (*ChannelService) GetChannelByName

GetChannelByName - Get channel by name

func (*ChannelService) GetChannelByPk

GetChannelByPk - Get channel by Primary Key(Id)

func (*ChannelService) GetChannelMessages

GetChannelMessages - get channel with messages

func (*ChannelService) GetChannelWithMessages

func (t *ChannelService) GetChannelWithMessages(ctx context.Context, in *commonproto.GetRequest) (*msgproto.Channel, error)

GetChannelWithMessages - Get channel with messages

func (*ChannelService) GetChannelsUser

GetChannelsUser - Get user channels

func (*ChannelService) ShowChannel

ShowChannel - Get channel details

func (*ChannelService) UpdateChannel

UpdateChannel - Update channel

type MessageService

type MessageService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient userproto.UserServiceClient
	msgproto.UnimplementedMessageServiceServer
	// contains filtered or unexported fields
}

MessageService - For accessing message services

func NewMessageService

func NewMessageService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient userproto.UserServiceClient) *MessageService

NewMessageService - Create message service

func (*MessageService) CreateMessage

CreateMessage - Create message

func (*MessageService) CreateUserLike

func (m *MessageService) CreateUserLike(ctx context.Context, in *msgproto.UserLikeRequest) (*msgproto.UserLike, error)

CreateUserLike - Create user likes messages

func (*MessageService) CreateUserVote

func (m *MessageService) CreateUserVote(ctx context.Context, in *msgproto.UserVoteRequest) (*msgproto.UserVote, error)

CreateUserVote - Create User Vote

func (*MessageService) DeleteMessage

func (m *MessageService) DeleteMessage(ctx context.Context, in *commonproto.GetRequest) (*commonproto.Empty, error)

DeleteMessage - Delete message

func (*MessageService) GetMessage

GetMessage - Get message

func (*MessageService) GetMessageAttachments

GetMessageAttachments - get message attachements

func (*MessageService) GetMessagesTexts

GetMessagesTexts - get message texts

func (*MessageService) GetMessagesWithTextAttach

GetMessagesWithTextAttach - Get messages with attachements

func (*MessageService) UpdateMessage

UpdateMessage - Update message

type WorkspaceService

type WorkspaceService struct {
	DBService         *common.DBService
	RedisService      *common.RedisService
	UserServiceClient userproto.UserServiceClient
	msgproto.UnimplementedWorkspaceServiceServer
	// contains filtered or unexported fields
}

WorkspaceService - For accessing workspace services

func NewWorkspaceService

func NewWorkspaceService(log *zap.Logger, dbOpt *common.DBService, redisOpt *common.RedisService, userServiceClient userproto.UserServiceClient) *WorkspaceService

NewWorkspaceService - Create workspace service

func (*WorkspaceService) CreateChild

CreateChild - Create Child Workspace

func (*WorkspaceService) CreateWorkspace

CreateWorkspace - Create Workspace

func (*WorkspaceService) DeleteWorkspace

func (c *WorkspaceService) DeleteWorkspace(ctx context.Context, in *commonproto.GetRequest) (*commonproto.Empty, error)

DeleteWorkspace - Delete workspace

func (*WorkspaceService) GetChildWorkspaces

func (c *WorkspaceService) GetChildWorkspaces(ctx context.Context, in *commonproto.GetRequest) (*msgproto.Workspaces, error)

GetChildWorkspaces - Get child Workspaces

func (*WorkspaceService) GetParentWorkspace

func (c *WorkspaceService) GetParentWorkspace(ctx context.Context, in *commonproto.GetRequest) (*msgproto.Workspace, error)

GetParentWorkspace - Get Parent Workspace

func (*WorkspaceService) GetTopLevelWorkspaces

GetTopLevelWorkspaces - Get top level Workspaces

func (*WorkspaceService) GetWorkspace

GetWorkspace - Get Workspace

func (*WorkspaceService) GetWorkspaceByPk

GetWorkspaceByPk - Get Workspace By Primary key(Id)

func (*WorkspaceService) GetWorkspaceWithChannels

func (c *WorkspaceService) GetWorkspaceWithChannels(ctx context.Context, in *commonproto.GetRequest) (*msgproto.Workspace, error)

GetWorkspaceWithChannels - Get workspace with channels

func (*WorkspaceService) GetWorkspaces

GetWorkspaces - Get Workspaces

func (*WorkspaceService) UpdateWorkspace

UpdateWorkspace - Update workspace

Jump to

Keyboard shortcuts

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