Documentation
¶
Index ¶
- Constants
- Variables
- func ApiPrefix(apiPrefix string) opt.Options
- func BuffSize(buffSize int) opt.Options
- func Codec(contentType string, c codec.Codec) opt.Options
- func ConfigOption(opts ...config.Options) opt.Options
- func ConnectTimeout(timeout time.Duration) opt.Options
- func Endpoint(e *endpoint.Endpoint) opt.Optionsdeprecated
- func Error(err parcel.ErrorPackager) opt.Options
- func EtcdConfig(e *clientv3.Config) opt.Options
- func Exit(exit ...func()) opt.Options
- func GetApiPrefix() string
- func HttpAddress(address string) opt.Options
- func Id(id string) opt.Options
- func KeepaliveInterval(keepaliveInterval time.Duration) opt.Options
- func KeepaliveLifetime(keepaliveLifetime time.Duration) opt.Options
- func Namespace(name string) opt.Options
- func Port(port [2]int) opt.Options
- func Registry(r registry.Registry) opt.Options
- func Signal(signal ...os.Signal) opt.Options
- func TCPAddress(address string) opt.Options
- func Version(version string) opt.Options
- func Wrapper(wrappers ...handler.WrapperHandler) opt.Options
- func WssAddress(address, path string) opt.Options
- type Service
- func (s *Service) ANY(relativePath string, handler http.Handler)
- func (s *Service) CONNECT(relativePath string, handler http.Handler)
- func (s *Service) Client() *client.Client
- func (s *Service) Close()
- func (s *Service) DELETE(relativePath string, handler http.Handler)
- func (s *Service) GET(relativePath string, handler http.Handler)
- func (s *Service) GROUP(prefix string) *Service
- func (s *Service) HEAD(relativePath string, handler http.Handler)
- func (s *Service) PATCH(relativePath string, handler http.Handler)
- func (s *Service) POST(relativePath string, handler http.Handler)
- func (s *Service) PUT(relativePath string, handler http.Handler)
- func (s *Service) Run() error
- func (s *Service) Server() *server.Server
- func (s *Service) TRACE(relativePath string, handler http.Handler)
Constants ¶
View Source
const SupportPackageIsVersion1 = 1
Variables ¶
View Source
var DefaultApiPrefix = "/roc/"
DefaultApiPrefix it must be unique in all of your handler path
Functions ¶
func EtcdConfig ¶
EtcdConfig setting global etcd config first
func GetApiPrefix ¶
func GetApiPrefix() string
func HttpAddress ¶
func TCPAddress ¶
func WssAddress ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.