usercenter

package
v0.0.0-...-1585808 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GRPCOptions  *genericoptions.GRPCOptions
	HTTPOptions  *genericoptions.HTTPOptions
	TLSOptions   *genericoptions.TLSOptions
	MySQLOptions *genericoptions.MySQLOptions
	RedisOptions *genericoptions.RedisOptions
	KafkaOptions *genericoptions.KafkaOptions
	Address      string
	Accounts     map[string]string
	JwtSecret    string
}

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 GRPCServer

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

func NewGRPCServer

func NewGRPCServer(
	grpcOptions *genericoptions.GRPCOptions,
	tlsOptions *genericoptions.TLSOptions,
	srv pb.UserCenterServer,
) (*GRPCServer, error)

func (*GRPCServer) GracefulStop

func (s *GRPCServer) GracefulStop()

func (*GRPCServer) RunOrDie

func (s *GRPCServer) RunOrDie()

type HTTPServer

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

func NewHTTPServer

func NewHTTPServer(
	httpOptions *genericoptions.HTTPOptions,
	tlsOptions *genericoptions.TLSOptions,
	g *gin.Engine,
) (*HTTPServer, error)

func (*HTTPServer) GracefulStop

func (s *HTTPServer) GracefulStop()

func (*HTTPServer) RunOrDie

func (s *HTTPServer) RunOrDie()

type Server

type Server interface {
	RunOrDie()
	GracefulStop()
}

type SmsServer

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

SmsServer represents the fake server.

func (*SmsServer) Run

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

Directories

Path Synopsis
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.
controller

Jump to

Keyboard shortcuts

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