miniblog

package
v0.0.0-...-c0e02ee Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthnWhiteListMatcher

func NewAuthnWhiteListMatcher() selector.Matcher

func NewAuthzWhiteListMatcher

func NewAuthzWhiteListMatcher() selector.Matcher

Types

type Config

type Config struct {
	GinMode      string
	JWTKey       string
	TLSOptions   *genericoptions.TLSOptions
	HTTPOptions  *genericoptions.HTTPOptions
	HTTPSOptions *genericoptions.HTTPOptions
	GRPCOptions  *genericoptions.GRPCOptions
	MySQLOptions *genericoptions.MySQLOptions
}

不用viper.Get,是因为这种方式更加显示

func (*Config) NewAPIServerConfig

func (cfg *Config) NewAPIServerConfig() (*apiServerConfig, error)

func (*Config) NewServer

func (cfg *Config) NewServer() (*Server, error)

type Server

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

func (*Server) Run

func (s *Server) Run()

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.
Package store defines the storage interface for miniblog.
Package store defines the storage interface for miniblog.

Jump to

Keyboard shortcuts

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