go-micro: github.com/micro/go-micro/api/server Index | Files | Directories

package server

import "github.com/micro/go-micro/api/server"

Package server provides an API gateway server which handles inbound requests


Package Files

options.go server.go

type Option Uses

type Option func(o *Options)

func ACMEHosts Uses

func ACMEHosts(hosts ...string) Option

func ACMEProvider Uses

func ACMEProvider(p acme.Provider) Option

func EnableACME Uses

func EnableACME(b bool) Option

func EnableTLS Uses

func EnableTLS(b bool) Option

func TLSConfig Uses

func TLSConfig(t *tls.Config) Option

type Options Uses

type Options struct {
    EnableACME   bool
    ACMEProvider acme.Provider
    EnableTLS    bool
    ACMEHosts    []string
    TLSConfig    *tls.Config

type Server Uses

type Server interface {
    Address() string
    Init(opts ...Option) error
    Handle(path string, handler http.Handler)
    Start() error
    Stop() error

Server serves api requests


acmePackage acme abstracts away various ACME libraries
acme/autocertPackage autocert is the ACME provider from golang.org/x/crypto/acme/autocert This provider does not take any config.
acme/certmagicPackage certmagic is the ACME provider from github.com/mholt/certmagic
httpPackage http provides a http server with features; acme, cors, etc

Package server imports 3 packages (graph) and is imported by 12 packages. Updated 2020-02-22. Refresh now. Tools for package owners.