Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KingCardServerManager ¶
func NewKingCardServerManager ¶
func NewKingCardServerManager(opts ...ManagerOption) *KingCardServerManager
type ManagerOption ¶
type ManagerOption func(*KingCardServerManager)
func WithKingCardServer ¶
func WithKingCardServer(s *Server) ManagerOption
func WithTokenApi ¶
func WithTokenApi(api string) ManagerOption
type Server ¶
func NewBaiduServer ¶
func NewServer ¶
func NewServer(opts ...ServerOption) *Server
func NewUcServer ¶
type ServerOption ¶
type ServerOption func(*Server)
func WithHttpUpstream ¶
func WithHttpUpstream(upstream *Upstream) ServerOption
func WithHttpsUpstream ¶
func WithHttpsUpstream(upstream *Upstream) ServerOption
func WithListen ¶
func WithListen(listen string) ServerOption
func WithVerbose ¶
func WithVerbose(verbose bool) ServerOption
type Upstream ¶
func NewUpstream ¶
func NewUpstream(opts ...UpstreamOption) *Upstream
type UpstreamOption ¶
type UpstreamOption func(*Upstream)
func WithAddress ¶
func WithAddress(address string) UpstreamOption
func WithHeaders ¶
func WithHeaders(headers map[string]string) UpstreamOption
Click to show internal directories.
Click to hide internal directories.