rpcserver

package
v0.0.0-...-348b0d6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTPListenAddrAndPort = ":8808"
)

Variables

View Source
var DefaultYoudaoDict = youdao.NewDict()

Functions

func RecoverFromCacheFiles

func RecoverFromCacheFiles()

Types

type Args

type Args struct {
	Word string
}

type RPCDict

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

func DefaultRPCDict

func DefaultRPCDict() *RPCDict

func NewRPCDict

func NewRPCDict(cache cache.ICache, dict base.Dict) *RPCDict

func (*RPCDict) LookUp

func (s *RPCDict) LookUp(args *Args, reply *RemoteReply) error

type RemoteReply

type RemoteReply struct {
	Word base.Word
}

Jump to

Keyboard shortcuts

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