mucp

package
v0.19.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 38 Imported by: 0

Documentation

Overview

Package mucp provides an mucp server

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultContentType = "application/protobuf"

	DefaultCodecs = map[string]codec.NewCodec{
		"application/grpc":         grpc.NewCodec,
		"application/grpc+json":    grpc.NewCodec,
		"application/grpc+proto":   grpc.NewCodec,
		"application/json":         json.NewCodec,
		"application/json-rpc":     jsonrpc.NewCodec,
		"application/protobuf":     proto.NewCodec,
		"application/proto-rpc":    protorpc.NewCodec,
		"application/octet-stream": b.NewCodec,
	}
)

Functions

func FromContext

func FromContext(ctx context.Context) (server.Server, bool)

func IsExported

func IsExported(name string) bool

IsExported Is this an exported - upper case - name?

func IsExportedOrBuiltinType

func IsExportedOrBuiltinType(t reflect.Type) bool

IsExportedOrBuiltinType Is this type exported or a builtin?

func NewContext

func NewContext(ctx context.Context, s server.Server) context.Context

func NewRouter

func NewRouter() server.Router

func NewServer

func NewServer(opts ...server.Option) server.Server

NewServer returns a vine server interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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