server

package
Version: v0.0.0-...-e1bfb01 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 10 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 {
	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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL