syntax = "proto3"; import "google/protobuf/empty.proto"; import "google/protobuf/wrappers.proto"; package notification; option go_package = "github.com/hub1989/jc-protobuf/notification"; service SendEmailService { rpc sendEmail(SendEmailRequest) returns (google.protobuf.BoolValue); rpc sendEmails(SendManyEmailsRequest) returns (BoolListResponse); } service RegistrationMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service VerificationMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service TitheMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service GivingMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service MassMailService { rpc sendEmail(MassEmailParameter) returns (google.protobuf.BoolValue); } service ContactMailService { rpc sendEmail(ContactParameter) returns (google.protobuf.BoolValue); } service ConfirmWorkerMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service BirthdayMailService { rpc sendEmail(EmailParameter) returns (google.protobuf.BoolValue); } service ComponentHealthService { rpc showDetails(google.protobuf.Empty) returns (InternalHealthResponse); } // Requests message StringListRequest { repeated google.protobuf.StringValue strings = 1; } message EmailParameter { User user = 1; repeated string to = 2; string from = 3; google.protobuf.StringValue optout = 4; google.protobuf.StringValue website = 5; } message ContactParameter { string message = 1; repeated string to = 2; string from = 3; google.protobuf.StringValue optout = 4; google.protobuf.StringValue website = 5; } message MassEmailParameter { string message = 1; repeated string to = 2; string from = 3; google.protobuf.StringValue optout = 4; google.protobuf.StringValue website = 5; google.protobuf.StringValue header = 6; } message User { google.protobuf.StringValue email = 1; google.protobuf.StringValue firstName = 2; google.protobuf.StringValue lastName = 3; google.protobuf.StringValue rccgId = 4; google.protobuf.StringValue titheNumber = 5; google.protobuf.StringValue rccgJcEmail = 6; google.protobuf.StringValue titheLink = 7; } message BoolListResponse { repeated google.protobuf.BoolValue responses = 1; } message SendManyEmailsRequest { repeated SendEmailRequest requests = 1; } message SendEmailRequest { repeated string to = 1; string subject = 2; google.protobuf.BytesValue message = 3; bool html = 4; string from = 5; } message InternalHealthResponse { string status = 1; string description = 2; map details = 3; string lastSeen = 4; string ipAddress = 5; }