api

package
v0.0.0-...-38b3bfd Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api - реализация gRPC API сервиса pb/api.proto

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config содержит настройки, которые могут быть изменены в аргументах сервиса

type Server

type Server struct {
	pb.GreeterServer
	// contains filtered or unexported fields
}

Server holds server methods implementation

func NewServer

func NewServer(cfg *Config, log loggers.Contextual, db *gorm.DB) *Server

NewServer создает указатель на структуру Server

func (*Server) SayHello

func (srv *Server) SayHello(ctx context.Context, r *pb.HelloRequest) (*pb.HelloReply, error)

SayHello says hello

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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