Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewAuth = c.NewWithValidate[Auth, AuthOption]
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (Auth) UnaryServerInterceptor ¶
func (a Auth) UnaryServerInterceptor( ctx context.Context, in any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (any, error)
type AuthConfig ¶
type AuthOption ¶
func WithAuthBotTokens ¶
func WithAuthBotTokens(botTokens map[string]string) AuthOption
func WithAuthLogger ¶
func WithAuthLogger(logger *zap.Logger) AuthOption
func WithAuthNoBotAllowed ¶ added in v0.7.7
func WithAuthNoBotAllowed() AuthOption
func WithAuthNoSignatureCheck ¶ added in v0.7.7
func WithAuthNoSignatureCheck(noSignatureCheck bool) AuthOption
type Config ¶
type Config struct {
WebApp WebAppConfig `yaml:"webapp"`
}
type User ¶
type WebAppConfig ¶
type WebAppConfig struct {
Auth AuthConfig
}
Click to show internal directories.
Click to hide internal directories.