service

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package service implements the functions, types, and interfaces for the module.

Package service implements the functions, types, and interfaces for the module.

Package service implements the functions, types, and interfaces for the module.

Package service implements the functions, types, and interfaces for the module.

Index

Constants

View Source
const DefaultTimeout = 5 * time.Second

Variables

View Source
var DefaultServiceBuilder = &serviceBuilder{}

DefaultServiceBuilder is the default instance of the service builder.

Functions

func NewClientTLSConfig

func NewClientTLSConfig(cfg *configv1.TLSConfig, opts ...TLSOption) (*tls.Config, error)

func NewServerTLSConfig

func NewServerTLSConfig(cfg *configv1.TLSConfig, opts ...TLSOption) (*tls.Config, error)

Types

type EndpointFunc added in v0.1.0

type EndpointFunc = func(scheme string, host string, addr string) (string, error)

type GRPCClient

type GRPCClient = grpc.ClientConn

GRPCClient define the gRPC client interface

type GRPCClientOption added in v0.0.4

type GRPCClientOption = transgrpc.ClientOption

GRPCClientOption define the gRPC client options

type GRPCServer

type GRPCServer = transgrpc.Server

GRPCServer define the gRPC server interface

type GRPCServerOption added in v0.0.4

type GRPCServerOption = transgrpc.ServerOption

GRPCServerOption define the gRPC server options

type HTTPClient

type HTTPClient = transhttp.Client

HTTPClient define the HTTP client interface

type HTTPClientOption added in v0.0.4

type HTTPClientOption = transhttp.ClientOption

HTTPClientOption define the HTTP client options

type HTTPServer

type HTTPServer = transhttp.Server

HTTPServer define the HTTP server interface

type HTTPServerOption added in v0.0.4

type HTTPServerOption = transhttp.ServerOption

HTTPServerOption define the HTTP server options

type Option added in v0.1.0

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

Option represents a set of configuration options for a service.

type OptionSetting added in v0.1.0

type OptionSetting = func(option *Option)

func WithGRPC added in v0.1.0

func WithGRPC(option ...grpc.OptionSetting) OptionSetting

func WithHTTP added in v0.1.0

func WithHTTP(option ...http.OptionSetting) OptionSetting

type RegisterGRPCClient added in v0.0.3

type RegisterGRPCClient = func(c *GRPCClient)

RegisterGRPCClient register a gRPC client

type RegisterGRPCServer added in v0.0.3

type RegisterGRPCServer = func(s *GRPCServer)

RegisterGRPCServer register a gRPC server

type RegisterHTTPClient added in v0.0.3

type RegisterHTTPClient = func(c *HTTPClient)

RegisterHTTPClient register a HTTP client

type RegisterHTTPServer added in v0.0.3

type RegisterHTTPServer = func(s *HTTPServer)

RegisterHTTPServer register a HTTP server

type TLSOption

type TLSOption = func(*tls.Config)

func SkipInsecure

func SkipInsecure(b bool) TLSOption

Directories

Path Synopsis
Package grpc implements the functions, types, and interfaces for the module.
Package grpc implements the functions, types, and interfaces for the module.
Package http implements the functions, types, and interfaces for the module.
Package http implements the functions, types, and interfaces for the module.
Package selector implements the functions, types, and interfaces for the module.
Package selector implements the functions, types, and interfaces for the module.

Jump to

Keyboard shortcuts

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