userservice

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

type UserService interface {
	IsAdmin(userID int64) bool
	IsUsageAllowed(userID, chatID int64) bool
}

func NewUserServiceStatic

func NewUserServiceStatic(allowedUserIDs []int64, allowedChatIDs []int64, adminIDs []int64) UserService

type UserServiceStatic

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

func (UserServiceStatic) IsAdmin

func (us UserServiceStatic) IsAdmin(userID int64) bool

func (UserServiceStatic) IsUsageAllowed added in v1.0.7

func (us UserServiceStatic) IsUsageAllowed(userID, chatID int64) bool

Jump to

Keyboard shortcuts

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