actor

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const JWTContextKey = "kangaroouser"

JWTContextKey is context key name

View Source
const RoomTokenKey = "kc_room_token"

RoomTokenKey is cookie's key name of RoomToken

Variables

View Source
var CookieExpired = utils.GetOsEnv("COOKIE_EXPIED", "3600")

CookieExpired is cookie's expired

View Source
var TokenSecret = utils.GetOsEnv("TOKEN_SECRET", "secretsecretdsfdsfsdfdsfsdf")

TokenSecret define token secrets

Functions

This section is empty.

Types

type BroadCastMessanger

type BroadCastMessanger struct {
	repository.BroadCasterRepository
}

BroadCastMessanger is BroadCastMessanger struct

func NewBroadCastMessanger

func NewBroadCastMessanger(ctx context.Context) *BroadCastMessanger

NewBroadCastMessanger creates a new BroadCasterRepository

type ChatRoomOperator added in v0.2.0

type ChatRoomOperator struct {
	repository.ChatRoomRepository
}

chatRoom struct

func NewChatRoomOperator added in v0.2.0

func NewChatRoomOperator(ctx context.Context) *ChatRoomOperator

NewChatRoomOperator creates a new ChatRoomRepository

type CookieOperator added in v0.2.0

type CookieOperator struct {
	repository.CookieRepository
}

CookieOperator struct

func NewCookieOperator added in v0.2.0

func NewCookieOperator(ctx context.Context, r *http.Request) *CookieOperator

NewCookieOperator creates a new CookieRepository

type JwtOperator added in v0.2.0

type JwtOperator struct {
	repository.JwtClaimsRepository
}

JwtOperator struct

func NewJwtOperator added in v0.2.0

func NewJwtOperator(ctx context.Context, username string, admin bool, identifier string) *JwtOperator

NewJwtOperator creates a new JwtClaimsRepository

type PasswordOperator added in v0.2.0

type PasswordOperator struct {
}

PasswordOperator struct

func (PasswordOperator) ComparePassword added in v0.2.0

func (po PasswordOperator) ComparePassword(hashedpassword, password, salt string) error

ComparePassword compare hashed password and string password

func (PasswordOperator) GetHashedPassword added in v0.2.0

func (po PasswordOperator) GetHashedPassword(password string) (string, string, error)

GetHashedPassword get hashed password

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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