Back to godoc.org

Package server

v0.0.0-...-e1bfb01
Latest Go to latest

The latest major version is .

Published: Aug 26, 2019 | License: Apache-2.0 | Module: berty.tech/zero-push

Index

type Config

type Config struct {
	GrpcBind         string   `protobuf:"bytes,1,opt,name=grpcBind,proto3" json:"grpcBind,omitempty"`
	ApnsCerts        []string `protobuf:"bytes,2,rep,name=apnsCerts,proto3" json:"apnsCerts,omitempty"`
	ApnsDevVoipCerts []string `protobuf:"bytes,3,rep,name=apnsDevVoipCerts,proto3" json:"apnsDevVoipCerts,omitempty"`
	FcmAPIKeys       []string `protobuf:"bytes,4,rep,name=fcmAPIKeys,proto3" json:"fcmAPIKeys,omitempty"`
	PrivateKeyFile   string   `protobuf:"bytes,5,opt,name=privateKeyFile,proto3" json:"privateKeyFile,omitempty"`
	PushJSONKey      string   `protobuf:"bytes,6,opt,name=pushJSONKey,proto3" json:"pushJSONKey,omitempty"`
}

type Server

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

func BuildServer

func BuildServer(cfg *Config) (*Server, error)

func (*Server) PushTo

func (s *Server) PushTo(ctx context.Context, pushToInput *proto_push.PushToInput) (*proto_push.Void, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier