Documentation
¶
Index ¶
- Variables
- func RemoveOutgoingHeader(whitelist map[string]string) runtime.ServeMuxOption
- type Address
- type Server
- func (s *Server) Handle(fn func(proxy *runtime.ServeMux) http.HandlerFunc) *Server
- func (s *Server) Listen(ctx context.Context)
- func (s *Server) Register(fn func(proxy *runtime.ServeMux, endpoint string, dialOpts []grpc.DialOption)) *Server
- func (s *Server) Start(ctx context.Context) error
- func (s *Server) Stop(ctx context.Context)
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProviderSet = wire.NewSet( NewServer, NewServerOption, ) )
Functions ¶
func RemoveOutgoingHeader ¶
func RemoveOutgoingHeader(whitelist map[string]string) runtime.ServeMuxOption
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(opt *ServerOption) *Server
type ServerOption ¶
type ServerOption struct { GrpcAddress grpcutil.Address GrpcDialOpts []grpc.DialOption Listener net.Listener Logger *slog.Logger Server *runtime.ServeMux // contains filtered or unexported fields }
func NewServerOption ¶
func NewServerOption( grpcAddress grpcutil.Address, grpcDialOpts []grpc.DialOption, addr Address, logger *slog.Logger, opts ...runtime.ServeMuxOption) (*ServerOption, func(), error)
Click to show internal directories.
Click to hide internal directories.