MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GetVCode

Method GetVCode

internal/repository/cache/sms.go:14–14  ·  view source on GitHub ↗
(ctx context.Context, smsID, number string)

Source from the content-addressed store, hash-verified

12
13type SMSCache interface {
14 GetVCode(ctx context.Context, smsID, number string) (string, error)
15 StoreVCode(ctx context.Context, smsID, number string, vCode string) error
16 SetNX(ctx context.Context, number string, value interface{}, expiration time.Duration) (*redis.BoolCmd, error)
17 Exist(ctx context.Context, number string) bool

Callers 2

CheckCodeMethod · 0.65
CheckCodeMethod · 0.65

Implementers 1

smsCacheinternal/repository/cache/sms.go

Calls

no outgoing calls

Tested by

no test coverage detected