server

package
v0.0.0-...-b224b64 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthService

type AuthService interface {
	SetConnection(host string) error
	Validate(session string) error
}

AuthService is an interface to meet the authentication needs

type Server

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

Server satisfies gRPC service interface requirements Store

func New

func New(authSerice AuthService) *Server

New creates a gRPC server instance for Store

func (*Server) Get

func (s *Server) Get(ctx context.Context, gr *storepb.StoreGetRequest) (*storepb.StoreGetReply, error)

GetURLs retrieves an available URL's associated link urls

func (*Server) Serve

func (s *Server) Serve(address string) error

Serve handles gRPC requests for service Store

func (*Server) Submit

func (s *Server) Submit(ctx context.Context, sr *storepb.StoreSubmitRequest) (*storepb.StoreSubmitReply, error)

SubmitURLs handles client requests to Submit to the Store service

Jump to

Keyboard shortcuts

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