Documentation ¶
Index ¶
- func ForceColor() bool
- func GetEnvFiles(root string) ([]string, error)
- func GetRand[T any](s []T) (v T)
- func NewDiscoveryGrpcConn(ctx context.Context, conf *Backend, d registry.Discovery) (*grpc.ClientConn, error)
- func NewEtcdGrpcConn(ctx context.Context, conf *EtcdBackend) (*grpc.ClientConn, error)
- func NewSignalGrpcConn(ctx context.Context, conf *Backend) (*grpc.ClientConn, error)
- func SortUUID() string
- func SortUUIDWithUUID(src uuid.UUID) string
- func WithPageAndPageSize(page, pageSize int) func(*gorm.DB) *gorm.DB
- type Backend
- type EtcdBackend
- type GrpcGatewayServer
- func (s *GrpcGatewayServer) Endpoint() (*url.URL, error)
- func (s *GrpcGatewayServer) Endpoints() ([]*url.URL, error)
- func (s *GrpcGatewayServer) GrpcRegistrar() grpc.ServiceRegistrar
- func (s *GrpcGatewayServer) HttpRegistrar() *ghttp.Server
- func (s *GrpcGatewayServer) Start(ctx context.Context) error
- func (s *GrpcGatewayServer) Stop(ctx context.Context) error
- type TCPHandler
- type TcpServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceColor ¶
func ForceColor() bool
func GetEnvFiles ¶
func NewDiscoveryGrpcConn ¶
func NewEtcdGrpcConn ¶
func NewEtcdGrpcConn(ctx context.Context, conf *EtcdBackend) (*grpc.ClientConn, error)
func NewSignalGrpcConn ¶
func SortUUIDWithUUID ¶ added in v0.2.0
Types ¶
type EtcdBackend ¶
type GrpcGatewayServer ¶
type GrpcGatewayServer struct {
// contains filtered or unexported fields
}
func NewGrpcGatewayServer ¶
func NewGrpcGatewayServer(config *conf.GrpcServerConfig) *GrpcGatewayServer
func (*GrpcGatewayServer) GrpcRegistrar ¶
func (s *GrpcGatewayServer) GrpcRegistrar() grpc.ServiceRegistrar
func (*GrpcGatewayServer) HttpRegistrar ¶
func (s *GrpcGatewayServer) HttpRegistrar() *ghttp.Server
type TcpServer ¶
type TcpServer struct {
// contains filtered or unexported fields
}
func NewTcpServer ¶
func NewTcpServer(conf *conf.TcpServer, handler TCPHandler) *TcpServer
Click to show internal directories.
Click to hide internal directories.