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: 0

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