Versions in this module Expand all Collapse all v9 v9.1.0 Jan 26, 2024 v9.0.0 Oct 27, 2023 Changes in this version + var DefaultMiddlewares = []Middleware + var ErrNilValuesIO = errors.New("nil input or output values") + var ErrOutputMustBePointer = errors.New("output must be a pointer") + func ConnectToGRPCServer(listener *bufconn.Listener) (*grpc.ClientConn, error) + func DefaultServerOptionsGRPC() []grpc.ServerOption + func DefaultStreamInterceptorsGRPC() []grpc.StreamServerInterceptor + func DefaultUnaryInterceptorsGRPC() []grpc.UnaryServerInterceptor + func GRPCCallOK(err error) bool + func GRPCCallSuccessful(err error) bool + func GenerateStreamServerInterceptorsChainWithBase(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption + func GenerateUnaryServerInterceptorsChainWithBase(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption + func GetLocalIPAddressString() (string, error) + func ListenAndServeGRPC(server *grpc.Server) *bufconn.Listener + func NewRouter(middlewares ...Middleware) chi.Router + func NewServerOptionsGRPC(streams []grpc.StreamServerInterceptor, unaries []grpc.UnaryServerInterceptor) []grpc.ServerOption + func WriteHTTP(ctx context.Context, w http.ResponseWriter, m encoders.WriterEncoder, ...) error + type Caller interface + Call func(ctx context.Context, endpoint string, in []byte) ([]byte, error) + func NewCallerHTTP(baseURL *url.URL, endpoints map[string]EndpointHTTP, timeout time.Duration) Caller + type Client struct + func NewClient(caller Caller, serializer encoders.Marshaller) Client + func (c *Client) Call(ctx context.Context, endpoint string, in, out interface{}) error + type EndpointHTTP struct + Method string + Path string + type Middleware func(handler http.Handler) http.Handler + type Option func(*Server) *Server + func GRPC(register func(s grpc.ServiceRegistrar), streams []grpc.StreamServerInterceptor, ...) Option + func HTTP(handler http.Handler, port uint) Option + func ListenerTCP(port uint) Option + type RoutesGetter interface + Routes func() http.Handler + type Server struct + func NewServer(opts ...Option) *Server + func (s *Server) Close() + func (s *Server) ListenAndServe() <-chan error + type ServiceRegistrator interface + Register func(s grpc.ServiceRegistrar) Other modules containing this package github.com/gazebo-web/gz-go/v10 github.com/gazebo-web/gz-go/v7 github.com/gazebo-web/gz-go/v8