usercenter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Name is the name of the compiled software.
	Name = "onex-usercenter"

	// ID contains the host name and any error encountered during the retrieval.
	ID, _ = os.Hostname()
)

Functions

func NewAuthenticator

func NewAuthenticator(jwtOpts *genericoptions.JWTOptions, redisOpts *genericoptions.RedisOptions) (authn.Authenticator, func(), error)

NewAuthenticator creates a new JWT-based Authenticator using the provided JWT and Redis options.

Types

type Config

type Config struct {
	GRPCOptions   *genericoptions.GRPCOptions
	HTTPOptions   *genericoptions.HTTPOptions
	TLSOptions    *genericoptions.TLSOptions
	JWTOptions    *genericoptions.JWTOptions
	MySQLOptions  *genericoptions.MySQLOptions
	RedisOptions  *genericoptions.RedisOptions
	EtcdOptions   *genericoptions.EtcdOptions
	KafkaOptions  *genericoptions.KafkaOptions
	JaegerOptions *genericoptions.JaegerOptions
	ConsulOptions *genericoptions.ConsulOptions
}

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
Package auth is a generated GoMock package.
Package auth is a generated GoMock package.
biz
Package biz is the place where you can implements more complex business logic.
Package biz is the place where you can implements more complex business logic.
auth
Package auth is a generated GoMock package.
Package auth is a generated GoMock package.
secret
Package secret is a generated GoMock package.
Package secret is a generated GoMock package.
user
Package user is a generated GoMock package.
Package user is a generated GoMock package.
errors
Package store is a generated GoMock package.
Package store is a generated GoMock package.

Jump to

Keyboard shortcuts

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