usercenter

package
v0.0.0-...-a95e806 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Name  = "cc-usercenter"
	ID, _ = os.Hostname()
)

Functions

func NewAuthenticator

func NewAuthenticator(jwtOpts *options.JWTOptions) (authn.Authenticator, func(), error)

Types

type Config

type Config struct {
	HTTPOptions  *genericoptions.HTTPOptions
	TLSOptions   *genericoptions.TLSOptions
	JWTOptions   *genericoptions.JWTOptions
	MySQLOptions *genericoptions.MySQLOptions
	RedisOptions *genericoptions.RedisOptions
}

Config represents the configuration of the service.

func (*Config) Complete

func (cfg *Config) Complete() completedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type Server

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

Server represents the server.

func (*Server) Run

func (s *Server) Run(stopCh <-chan struct{}) error

Run is a method of the Server struct that starts the server.

Directories

Path Synopsis
biz

Jump to

Keyboard shortcuts

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