utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UA = `` /* 135-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func ForceColor added in v0.3.2

func ForceColor() bool

func GetEnvFiles added in v0.3.2

func GetEnvFiles(root string) ([]string, error)

func MapToHttpCookies

func MapToHttpCookies(m map[string]string) []*http.Cookie

func NoRedirectClient added in v0.2.0

func NoRedirectClient(client *http.Client) *http.Client

func NoRedirectHttpClient

func NoRedirectHttpClient() *http.Client

Types

type GrpcGatewayServer added in v0.2.0

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

func NewGrpcGatewayServer added in v0.2.0

func NewGrpcGatewayServer(config *conf.GrpcServer) *GrpcGatewayServer

func (*GrpcGatewayServer) Endpoint added in v0.2.0

func (s *GrpcGatewayServer) Endpoint() (*url.URL, error)

func (*GrpcGatewayServer) Endpoints added in v0.2.0

func (s *GrpcGatewayServer) Endpoints() ([]*url.URL, error)

func (*GrpcGatewayServer) GrpcRegistrar added in v0.2.0

func (s *GrpcGatewayServer) GrpcRegistrar() grpc.ServiceRegistrar

func (*GrpcGatewayServer) HttpRegistrar added in v0.2.0

func (s *GrpcGatewayServer) HttpRegistrar() *ghttp.Server

func (*GrpcGatewayServer) ServiceName added in v0.2.0

func (s *GrpcGatewayServer) ServiceName() string

func (*GrpcGatewayServer) Start added in v0.2.0

func (s *GrpcGatewayServer) Start(ctx context.Context) error

func (*GrpcGatewayServer) Stop added in v0.2.0

func (s *GrpcGatewayServer) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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