cvzruntime

package
v0.0.0-...-df32303 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package cvzruntime provides the runtime layer for the service.

Package cvzruntime provides the runtime layer for the service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(ctx context.Context, mux IServeMux, service cvzservice.GRPCServicer, endpoint string, opts []grpc.DialOption) error

RegisterService registers a service with the runtime.

Types

type IServeMux

type IServeMux interface {
	Listen(addr string) error
	AsRuntimeMux() *runtime.ServeMux
}

IServeMux is an interface for a runtime mux.

func NewServeMux

func NewServeMux(opts ...runtime.ServeMuxOption) IServeMux

NewServeMux creates a new runtime mux.

type ServeMux

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

ServeMux is a runtime mux.

func (*ServeMux) AsRuntimeMux

func (mux *ServeMux) AsRuntimeMux() *runtime.ServeMux

AsRuntimeMux returns the underlying runtime mux.

func (*ServeMux) Listen

func (mux *ServeMux) Listen(addr string) error

Listen starts the runtime mux.

Jump to

Keyboard shortcuts

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