guild

package
v0.0.0-...-5cae788 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(db *sqlx.DB) *Service

func (*Service) AddNewUser

func (s *Service) AddNewUser(publicKey, name string) (uint64, error)

func (*Service) GetCategories

func (s *Service) GetCategories() []models.GuildCategories

func (*Service) GetChannels

func (s *Service) GetChannels() []models.GuildChannels

func (*Service) GetGuildMessages

func (s *Service) GetGuildMessages(channelId, msgId int) ([]models.GuildMessages, error)

func (*Service) GetUser

func (s *Service) GetUser(id uint64) (models.Users, error)

func (*Service) GetUsers

func (s *Service) GetUsers() []models.Users

func (*Service) InsertGuildMessage

func (s *Service) InsertGuildMessage(senderId, channelId uint64, message string) (uint64, error)

Jump to

Keyboard shortcuts

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