api

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 20 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RepoPath  string
	Addr      ma.Multiaddr
	ProxyAddr ma.Multiaddr
	Debug     bool
}

Config specifies server settings.

type Server

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

Server provides a gRPC API to a store manager.

func NewServer

func NewServer(ctx context.Context, ts core.Service, conf Config, opts ...grpc.ServerOption) (*Server, error)

NewServer starts and returns a new server with the given threadservice. The threadservice is *not* managed by the server.

func (*Server) Close

func (s *Server) Close()

Close the server and the store manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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