app

package
v0.0.0-...-b942761 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InjectorSet = wire.NewSet(wire.Struct(new(Injector), "*"))

Functions

func InitGormDB

func InitGormDB() (*gorm.DB, error)

func InitStore

func InitStore() (*redis.Store, error)

func NewGormDB

func NewGormDB() (*gorm.DB, error)

func RunApp

func RunApp(ctx context.Context, opts ...Option) error

Types

type GrpcServer

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

func InitGrpcServer

func InitGrpcServer(logService pb.LogServiceServer) *GrpcServer

func (*GrpcServer) Run

func (s *GrpcServer) Run() error

type Injector

type Injector struct {
	GrpcServer *GrpcServer
}

func BuildInjector

func BuildInjector() (*Injector, error)

type Option

type Option func(*options)

func SetConfigFile

func SetConfigFile(s string) Option

func SetVersion

func SetVersion(s string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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