thrift

package
v0.0.0-...-6b27e27 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(thriftApi thrifter.API) *Client

TODO: support framed transport

func (*Client) Handle

func (client *Client) Handle(addr string, messageName string, ptrHandlerObj interface{})

type Server

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

func NewServer

func NewServer(thriftApi thrifter.API) *Server

TODO: support framed transport

func (*Server) Handle

func (server *Server) Handle(messageName string, handlerObj interface{})

func (*Server) Shutdown

func (server *Server) Shutdown(ctx *countlog.Context) error

func (*Server) Start

func (server *Server) Start(addr string) error

func (*Server) Stop

func (server *Server) Stop() error

type ThriftException

type ThriftException struct {
	ErrorMessage string `thrift:",1"`
}

Jump to

Keyboard shortcuts

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