server

package
v0.0.0-...-5fd3f30 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 License: GPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RpcServer

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

func (*RpcServer) GetCategories

GetCategories get all categories

func (*RpcServer) GetPosts

func (r *RpcServer) GetPosts(ctx context.Context, req *pb.PostRequest) (*pb.PostResponse, error)

GetPosts get all posts data

func (*RpcServer) Start

func (r *RpcServer) Start(ip string, port int) error

Start start gRPC server

type Server

type Server interface {
	Start(ip string, port int) error
}

func NewRpcServer

func NewRpcServer(cfg configs.Configurable) Server

NewWebServer make new struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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