Back to

Package server

Latest Go to latest

The latest major version is .

Published: Aug 26, 2019 | License: Apache-2.0 | Module:


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