tserver

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 6 Imported by: 0

README

thrift server

只是简单封装,目的是统一Server的接口形式 暂时不做强制要求。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server defined thrift server

func NewServer

func NewServer(addr string, processor thrift.TProcessor) *Server

NewServer return Server

func (*Server) Serve

func (s *Server) Serve() error

Serve define main

func (*Server) Stop

func (s *Server) Stop() error

Stop defined

Jump to

Keyboard shortcuts

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