pkg

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrConstructorNotReg constructor is not found
	ErrConstructorNotReg = errors.New("constructor is not registered")
)
View Source
var (
	//ErrSwaggerNotExist when document is not found
	ErrSwaggerNotExist = errors.New("swagger doc is no exist")
)

Functions

This section is empty.

Types

type ClosableClient

type ClosableClient[T any] struct {
	C T
	// contains filtered or unexported fields
}

ClosableClient closable client

func (ClosableClient[T]) Close

func (sc ClosableClient[T]) Close() error

Close impl Closable

func (*ClosableClient[T]) Init

func (sc *ClosableClient[T]) Init(conn grpc.ClientConnInterface) error

Init initialize closable client

func (*ClosableClient[T]) MustInit

func (sc *ClosableClient[T]) MustInit(conn grpc.ClientConnInterface)

MustInit panics when Init returns error

type SwaggerUtil

type SwaggerUtil[T any] struct{}

SwaggerUtil ...

func (SwaggerUtil[T]) GetRaw

func (u SwaggerUtil[T]) GetRaw() (json.RawMessage, error)

GetRaw ...

func (SwaggerUtil[T]) GetSpec

func (u SwaggerUtil[T]) GetSpec() (*spec.Swagger, error)

GetSpec ...

Directories

Path Synopsis
api
sgroups
Package sgroups is a reverse proxy.
Package sgroups is a reverse proxy.

Jump to

Keyboard shortcuts

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