unilogrpc

package
v0.0.0-...-ea0e1bd Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterUnilogServer

func RegisterUnilogServer(server *rpc.Server, s UnilogServer) error

Types

type Unilog

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

func (*Unilog) Register

func (h *Unilog) Register(in *UnilogRegisterReq, resp *int64) error

type UnilogCli

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

func NewUnilogCli

func NewUnilogCli(rpcCli *rpc.Client) *UnilogCli

func (*UnilogCli) Register

func (r *UnilogCli) Register(arg *UnilogRegisterReq) (*int64, error)

type UnilogRegisterReq

type UnilogRegisterReq struct {
	APPName string
	Host    string // ip:port
	CodeInt int64
}

type UnilogServer

type UnilogServer interface {
	Register(*UnilogRegisterReq) (*int64, error)
}

Jump to

Keyboard shortcuts

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