details

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Server *ServerOptions `mapstructure:"server"`
}

Options server opts

func Configure

func Configure(configProvider configparser.Provider) (*Options, error)

Configure inject config

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions default opts

type Server

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

Server kitex server

func NewServer

func NewServer(ctx context.Context) (*Server, error)

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

Run kitex server

type ServerOptions

type ServerOptions struct {
	Addr     string         `mapstructure:"addr"`
	LogLevel logutils.Level `mapstructure:"logLevel"`
}

ServerOptions server options

func DefaultServerOptions

func DefaultServerOptions() *ServerOptions

DefaultServerOptions default opts

Jump to

Keyboard shortcuts

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