api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr ma.Multiaddr

	Collections *c.Collections

	EmailClient    *email.Client
	IPFSClient     iface.CoreAPI
	FilecoinClient *fc.Client
	DNSManager     *dns.Manager

	GatewayUrl   string
	GatewayToken string

	SessionBus    *broadcast.Broadcaster
	SessionSecret string

	Debug bool
}

Config specifies server settings.

type Server

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

Server provides a gRPC API to the textile daemon.

func NewServer

func NewServer(ctx context.Context, conf Config) (*Server, error)

NewServer starts and returns a new server.

func (*Server) Close

func (s *Server) Close() error

Close the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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