proto

package
v0.0.0-...-094aa35 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MPL-2.0 Imports: 17 Imported by: 6

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AdhanService_CreateAdhanFile_FullMethodName = "/limestone.AdhanService/CreateAdhanFile"
	AdhanService_UpdateAdhanFile_FullMethodName = "/limestone.AdhanService/UpdateAdhanFile"
	AdhanService_GetAdhanFile_FullMethodName    = "/limestone.AdhanService/GetAdhanFile"
	AdhanService_DeleteAdhanFile_FullMethodName = "/limestone.AdhanService/DeleteAdhanFile"
)
View Source
const (
	EventService_CreateEvent_FullMethodName = "/limestone.EventService/CreateEvent"
	EventService_UpdateEvent_FullMethodName = "/limestone.EventService/UpdateEvent"
	EventService_DeleteEvent_FullMethodName = "/limestone.EventService/DeleteEvent"
	EventService_GetEvent_FullMethodName    = "/limestone.EventService/GetEvent"
	EventService_ListEvents_FullMethodName  = "/limestone.EventService/ListEvents"
)
View Source
const (
	MasjidService_CreateMasjid_FullMethodName = "/limestone.MasjidService/CreateMasjid"
	MasjidService_UpdateMasjid_FullMethodName = "/limestone.MasjidService/UpdateMasjid"
	MasjidService_DeleteMasjid_FullMethodName = "/limestone.MasjidService/DeleteMasjid"
	MasjidService_GetMasjid_FullMethodName    = "/limestone.MasjidService/GetMasjid"
	MasjidService_ListMasjids_FullMethodName  = "/limestone.MasjidService/ListMasjids"
)
View Source
const (
	UserService_CreateUser_FullMethodName       = "/limestone.UserService/CreateUser"
	UserService_GetUser_FullMethodName          = "/limestone.UserService/GetUser"
	UserService_UpdateUser_FullMethodName       = "/limestone.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName       = "/limestone.UserService/DeleteUser"
	UserService_AuthenticateUser_FullMethodName = "/limestone.UserService/AuthenticateUser"
	UserService_RefreshToken_FullMethodName     = "/limestone.UserService/RefreshToken"
)

Variables

View Source
var (
	Event_GenderRestriction_name = map[int32]string{
		0: "NO_RESTRICTION",
		1: "MALE_ONLY",
		2: "FEMALE_ONLY",
	}
	Event_GenderRestriction_value = map[string]int32{
		"NO_RESTRICTION": 0,
		"MALE_ONLY":      1,
		"FEMALE_ONLY":    2,
	}
)

Enum value maps for Event_GenderRestriction.

View Source
var (
	Event_EventType_name = map[int32]string{
		0: "WORSHIP",
		1: "EDUCATIONAL",
		2: "COMMUNITY",
		3: "ATHLETIC",
		4: "FUNDRAISING",
		5: "YOUTH",
		6: "CHILDREN_SPECIFIC",
		7: "MATRIMONIAL",
		8: "FUNERAL",
	}
	Event_EventType_value = map[string]int32{
		"WORSHIP":           0,
		"EDUCATIONAL":       1,
		"COMMUNITY":         2,
		"ATHLETIC":          3,
		"FUNDRAISING":       4,
		"YOUTH":             5,
		"CHILDREN_SPECIFIC": 6,
		"MATRIMONIAL":       7,
		"FUNERAL":           8,
	}
)

Enum value maps for Event_EventType.

View Source
var (
	PrayerTimesConfiguration_CalculationMethod_name = map[int32]string{
		0:  "OTHER",
		1:  "MUSLIM_WORLD_LEAGUE",
		2:  "EGYPTIAN",
		3:  "KARACHI",
		4:  "UMM_AL_QURA",
		5:  "DUBAI",
		6:  "MOON_SIGHTING_COMMITTEE",
		7:  "NORTH_AMERICA",
		8:  "KUWAIT",
		9:  "QATAR",
		10: "SINGAPORE",
		11: "UOIF",
	}
	PrayerTimesConfiguration_CalculationMethod_value = map[string]int32{
		"OTHER":                   0,
		"MUSLIM_WORLD_LEAGUE":     1,
		"EGYPTIAN":                2,
		"KARACHI":                 3,
		"UMM_AL_QURA":             4,
		"DUBAI":                   5,
		"MOON_SIGHTING_COMMITTEE": 6,
		"NORTH_AMERICA":           7,
		"KUWAIT":                  8,
		"QATAR":                   9,
		"SINGAPORE":               10,
		"UOIF":                    11,
	}
)

Enum value maps for PrayerTimesConfiguration_CalculationMethod.

View Source
var (
	PrayerTimesConfiguration_AsrJuristicMethod_name = map[int32]string{
		0: "SHAFI_HANBALI_MALIKI",
		1: "HANAFI",
	}
	PrayerTimesConfiguration_AsrJuristicMethod_value = map[string]int32{
		"SHAFI_HANBALI_MALIKI": 0,
		"HANAFI":               1,
	}
)

Enum value maps for PrayerTimesConfiguration_AsrJuristicMethod.

View Source
var (
	PrayerTimesConfiguration_HighLatitudeRule_name = map[int32]string{
		0: "NO_HIGH_LATITUDE_RULE",
		1: "MIDDLE_OF_THE_NIGHT",
		2: "SEVENTH_OF_THE_NIGHT",
		3: "TWILIGHT_ANGLE",
	}
	PrayerTimesConfiguration_HighLatitudeRule_value = map[string]int32{
		"NO_HIGH_LATITUDE_RULE": 0,
		"MIDDLE_OF_THE_NIGHT":   1,
		"SEVENTH_OF_THE_NIGHT":  2,
		"TWILIGHT_ANGLE":        3,
	}
)

Enum value maps for PrayerTimesConfiguration_HighLatitudeRule.

View Source
var (
	MasjidRole_Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "MASJID_MEMBER",
		2: "MASJID_VOLUNTEER",
		3: "MASJID_ADMIN",
		4: "MASJID_IMAM",
	}
	MasjidRole_Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"MASJID_MEMBER":    1,
		"MASJID_VOLUNTEER": 2,
		"MASJID_ADMIN":     3,
		"MASJID_IMAM":      4,
	}
)

Enum value maps for MasjidRole_Role.

View Source
var (
	User_Gender_name = map[int32]string{
		0: "GENDER_UNSPECIFIED",
		1: "MALE",
		2: "FEMALE",
	}
	User_Gender_value = map[string]int32{
		"GENDER_UNSPECIFIED": 0,
		"MALE":               1,
		"FEMALE":             2,
	}
)

Enum value maps for User_Gender.

View Source
var AdhanService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "limestone.AdhanService",
	HandlerType: (*AdhanServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAdhanFile",
			Handler:    _AdhanService_CreateAdhanFile_Handler,
		},
		{
			MethodName: "UpdateAdhanFile",
			Handler:    _AdhanService_UpdateAdhanFile_Handler,
		},
		{
			MethodName: "GetAdhanFile",
			Handler:    _AdhanService_GetAdhanFile_Handler,
		},
		{
			MethodName: "DeleteAdhanFile",
			Handler:    _AdhanService_DeleteAdhanFile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "adhan_service.proto",
}

AdhanService_ServiceDesc is the grpc.ServiceDesc for AdhanService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "limestone.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateEvent",
			Handler:    _EventService_CreateEvent_Handler,
		},
		{
			MethodName: "UpdateEvent",
			Handler:    _EventService_UpdateEvent_Handler,
		},
		{
			MethodName: "DeleteEvent",
			Handler:    _EventService_DeleteEvent_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _EventService_GetEvent_Handler,
		},
		{
			MethodName: "ListEvents",
			Handler:    _EventService_ListEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "event_service.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_adhan_service_proto protoreflect.FileDescriptor
View Source
var File_event_service_proto protoreflect.FileDescriptor
View Source
var File_masjid_service_proto protoreflect.FileDescriptor
View Source
var File_user_service_proto protoreflect.FileDescriptor
View Source
var MasjidService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "limestone.MasjidService",
	HandlerType: (*MasjidServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMasjid",
			Handler:    _MasjidService_CreateMasjid_Handler,
		},
		{
			MethodName: "UpdateMasjid",
			Handler:    _MasjidService_UpdateMasjid_Handler,
		},
		{
			MethodName: "DeleteMasjid",
			Handler:    _MasjidService_DeleteMasjid_Handler,
		},
		{
			MethodName: "GetMasjid",
			Handler:    _MasjidService_GetMasjid_Handler,
		},
		{
			MethodName: "ListMasjids",
			Handler:    _MasjidService_ListMasjids_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "masjid_service.proto",
}

MasjidService_ServiceDesc is the grpc.ServiceDesc for MasjidService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "limestone.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "AuthenticateUser",
			Handler:    _UserService_AuthenticateUser_Handler,
		},
		{
			MethodName: "RefreshToken",
			Handler:    _UserService_RefreshToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_service.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterAdhanServiceHandler

func RegisterAdhanServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAdhanServiceHandler registers the http handlers for service AdhanService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAdhanServiceHandlerClient

func RegisterAdhanServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdhanServiceClient) error

RegisterAdhanServiceHandlerClient registers the http handlers for service AdhanService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdhanServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdhanServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdhanServiceClient" to call the correct interceptors.

func RegisterAdhanServiceHandlerFromEndpoint

func RegisterAdhanServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAdhanServiceHandlerFromEndpoint is same as RegisterAdhanServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAdhanServiceHandlerServer

func RegisterAdhanServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdhanServiceServer) error

RegisterAdhanServiceHandlerServer registers the http handlers for service AdhanService to "mux". UnaryRPC :call AdhanServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdhanServiceHandlerFromEndpoint instead.

func RegisterAdhanServiceServer

func RegisterAdhanServiceServer(s grpc.ServiceRegistrar, srv AdhanServiceServer)

func RegisterEventServiceHandler

func RegisterEventServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEventServiceHandler registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEventServiceHandlerClient

func RegisterEventServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EventServiceClient) error

RegisterEventServiceHandlerClient registers the http handlers for service EventService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EventServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EventServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EventServiceClient" to call the correct interceptors.

func RegisterEventServiceHandlerFromEndpoint

func RegisterEventServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEventServiceHandlerFromEndpoint is same as RegisterEventServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEventServiceHandlerServer

func RegisterEventServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EventServiceServer) error

RegisterEventServiceHandlerServer registers the http handlers for service EventService to "mux". UnaryRPC :call EventServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEventServiceHandlerFromEndpoint instead.

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterMasjidServiceHandler

func RegisterMasjidServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterMasjidServiceHandler registers the http handlers for service MasjidService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterMasjidServiceHandlerClient

func RegisterMasjidServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MasjidServiceClient) error

RegisterMasjidServiceHandlerClient registers the http handlers for service MasjidService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MasjidServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MasjidServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MasjidServiceClient" to call the correct interceptors.

func RegisterMasjidServiceHandlerFromEndpoint

func RegisterMasjidServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterMasjidServiceHandlerFromEndpoint is same as RegisterMasjidServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterMasjidServiceHandlerServer

func RegisterMasjidServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MasjidServiceServer) error

RegisterMasjidServiceHandlerServer registers the http handlers for service MasjidService to "mux". UnaryRPC :call MasjidServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMasjidServiceHandlerFromEndpoint instead.

func RegisterMasjidServiceServer

func RegisterMasjidServiceServer(s grpc.ServiceRegistrar, srv MasjidServiceServer)

func RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AdhanFile

type AdhanFile struct {

	// The unique id associated with this file.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The masjid id associated with this file.
	MasjidId string `protobuf:"bytes,2,opt,name=masjid_id,json=masjidId,proto3" json:"masjid_id,omitempty"`
	// The bytes of the audio file. This should be in LINEAR16 format at
	// a sample rate of 16 kHz.
	File []byte `protobuf:"bytes,3,opt,name=file,proto3" json:"file,omitempty"`
	// The create time of the file. This field is output only.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The update time of the file. This field is output only.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*AdhanFile) Descriptor deprecated

func (*AdhanFile) Descriptor() ([]byte, []int)

Deprecated: Use AdhanFile.ProtoReflect.Descriptor instead.

func (*AdhanFile) GetCreateTime

func (x *AdhanFile) GetCreateTime() *timestamppb.Timestamp

func (*AdhanFile) GetFile

func (x *AdhanFile) GetFile() []byte

func (*AdhanFile) GetId

func (x *AdhanFile) GetId() string

func (*AdhanFile) GetMasjidId

func (x *AdhanFile) GetMasjidId() string

func (*AdhanFile) GetUpdateTime

func (x *AdhanFile) GetUpdateTime() *timestamppb.Timestamp

func (*AdhanFile) ProtoMessage

func (*AdhanFile) ProtoMessage()

func (*AdhanFile) ProtoReflect

func (x *AdhanFile) ProtoReflect() protoreflect.Message

func (*AdhanFile) Reset

func (x *AdhanFile) Reset()

func (*AdhanFile) String

func (x *AdhanFile) String() string

type AdhanServiceClient

type AdhanServiceClient interface {
	// Creates an adhan audio file in the database for a masjid.
	CreateAdhanFile(ctx context.Context, in *CreateAdhanFileRequest, opts ...grpc.CallOption) (*AdhanFile, error)
	// Updates an adhan audio file in the database for a masjid.
	UpdateAdhanFile(ctx context.Context, in *UpdateAdhanFileRequest, opts ...grpc.CallOption) (*AdhanFile, error)
	// Get an adhan audio file from the database for a masjid.
	GetAdhanFile(ctx context.Context, in *GetAdhanFileRequest, opts ...grpc.CallOption) (*AdhanFile, error)
	// Deletes an adhan audio from the database for a masjid.
	DeleteAdhanFile(ctx context.Context, in *DeleteAdhanFileRequest, opts ...grpc.CallOption) (*DeleteAdhanFileResponse, error)
}

AdhanServiceClient is the client API for AdhanService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AdhanServiceServer

type AdhanServiceServer interface {
	// Creates an adhan audio file in the database for a masjid.
	CreateAdhanFile(context.Context, *CreateAdhanFileRequest) (*AdhanFile, error)
	// Updates an adhan audio file in the database for a masjid.
	UpdateAdhanFile(context.Context, *UpdateAdhanFileRequest) (*AdhanFile, error)
	// Get an adhan audio file from the database for a masjid.
	GetAdhanFile(context.Context, *GetAdhanFileRequest) (*AdhanFile, error)
	// Deletes an adhan audio from the database for a masjid.
	DeleteAdhanFile(context.Context, *DeleteAdhanFileRequest) (*DeleteAdhanFileResponse, error)
	// contains filtered or unexported methods
}

AdhanServiceServer is the server API for AdhanService service. All implementations must embed UnimplementedAdhanServiceServer for forward compatibility.

type AuthenticateUserRequest

type AuthenticateUserRequest struct {

	// Use either username or email for authentication.
	//
	// Types that are assignable to Identifier:
	//
	//	*AuthenticateUserRequest_Username
	//	*AuthenticateUserRequest_Email
	Identifier isAuthenticateUserRequest_Identifier `protobuf_oneof:"identifier"`
	// The password for authentication
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateUserRequest) Descriptor deprecated

func (*AuthenticateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateUserRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateUserRequest) GetEmail

func (x *AuthenticateUserRequest) GetEmail() string

func (*AuthenticateUserRequest) GetIdentifier

func (m *AuthenticateUserRequest) GetIdentifier() isAuthenticateUserRequest_Identifier

func (*AuthenticateUserRequest) GetPassword

func (x *AuthenticateUserRequest) GetPassword() string

func (*AuthenticateUserRequest) GetUsername

func (x *AuthenticateUserRequest) GetUsername() string

func (*AuthenticateUserRequest) ProtoMessage

func (*AuthenticateUserRequest) ProtoMessage()

func (*AuthenticateUserRequest) ProtoReflect

func (x *AuthenticateUserRequest) ProtoReflect() protoreflect.Message

func (*AuthenticateUserRequest) Reset

func (x *AuthenticateUserRequest) Reset()

func (*AuthenticateUserRequest) String

func (x *AuthenticateUserRequest) String() string

type AuthenticateUserRequest_Email

type AuthenticateUserRequest_Email struct {
	Email string `protobuf:"bytes,2,opt,name=email,proto3,oneof"`
}

type AuthenticateUserRequest_Username

type AuthenticateUserRequest_Username struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3,oneof"`
}

type AuthenticateUserResponse

type AuthenticateUserResponse struct {

	// The access token for subsequent authenticated requests.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// The refresh token to obtain a new access token when it expires.
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// The ID of the authenticated user (if successful).
	UserId int32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateUserResponse) Descriptor deprecated

func (*AuthenticateUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use AuthenticateUserResponse.ProtoReflect.Descriptor instead.

func (*AuthenticateUserResponse) GetAccessToken

func (x *AuthenticateUserResponse) GetAccessToken() string

func (*AuthenticateUserResponse) GetRefreshToken

func (x *AuthenticateUserResponse) GetRefreshToken() string

func (*AuthenticateUserResponse) GetUserId

func (x *AuthenticateUserResponse) GetUserId() int32

func (*AuthenticateUserResponse) ProtoMessage

func (*AuthenticateUserResponse) ProtoMessage()

func (*AuthenticateUserResponse) ProtoReflect

func (x *AuthenticateUserResponse) ProtoReflect() protoreflect.Message

func (*AuthenticateUserResponse) Reset

func (x *AuthenticateUserResponse) Reset()

func (*AuthenticateUserResponse) String

func (x *AuthenticateUserResponse) String() string

type CreateAdhanFileRequest

type CreateAdhanFileRequest struct {

	// The adhan file to create.
	AdhanFile *AdhanFile `protobuf:"bytes,1,opt,name=adhan_file,json=adhanFile,proto3" json:"adhan_file,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAdhanFileRequest) Descriptor deprecated

func (*CreateAdhanFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateAdhanFileRequest.ProtoReflect.Descriptor instead.

func (*CreateAdhanFileRequest) GetAdhanFile

func (x *CreateAdhanFileRequest) GetAdhanFile() *AdhanFile

func (*CreateAdhanFileRequest) ProtoMessage

func (*CreateAdhanFileRequest) ProtoMessage()

func (*CreateAdhanFileRequest) ProtoReflect

func (x *CreateAdhanFileRequest) ProtoReflect() protoreflect.Message

func (*CreateAdhanFileRequest) Reset

func (x *CreateAdhanFileRequest) Reset()

func (*CreateAdhanFileRequest) String

func (x *CreateAdhanFileRequest) String() string

type CreateEventRequest

type CreateEventRequest struct {

	// The event to create in the database.
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateEventRequest) Descriptor deprecated

func (*CreateEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetEvent

func (x *CreateEventRequest) GetEvent() *Event

func (*CreateEventRequest) ProtoMessage

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect

func (x *CreateEventRequest) ProtoReflect() protoreflect.Message

func (*CreateEventRequest) Reset

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String

func (x *CreateEventRequest) String() string

type CreateMasjidRequest

type CreateMasjidRequest struct {

	// The masjid to create in the database.
	Masjid *Masjid `protobuf:"bytes,1,opt,name=masjid,proto3" json:"masjid,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMasjidRequest) Descriptor deprecated

func (*CreateMasjidRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateMasjidRequest.ProtoReflect.Descriptor instead.

func (*CreateMasjidRequest) GetMasjid

func (x *CreateMasjidRequest) GetMasjid() *Masjid

func (*CreateMasjidRequest) ProtoMessage

func (*CreateMasjidRequest) ProtoMessage()

func (*CreateMasjidRequest) ProtoReflect

func (x *CreateMasjidRequest) ProtoReflect() protoreflect.Message

func (*CreateMasjidRequest) Reset

func (x *CreateMasjidRequest) Reset()

func (*CreateMasjidRequest) String

func (x *CreateMasjidRequest) String() string

type CreateUserRequest

type CreateUserRequest struct {

	// The user to create.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// The password for the user. This password is hashed before being
	// stored in the database.
	// The password must be at least 8 characters.
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) Descriptor deprecated

func (*CreateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUser

func (x *CreateUserRequest) GetUser() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

func (x *CreateUserRequest) ProtoReflect() protoreflect.Message

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type DeleteAdhanFileRequest

type DeleteAdhanFileRequest struct {

	// The adhan file id to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAdhanFileRequest) Descriptor deprecated

func (*DeleteAdhanFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAdhanFileRequest.ProtoReflect.Descriptor instead.

func (*DeleteAdhanFileRequest) GetId

func (x *DeleteAdhanFileRequest) GetId() string

func (*DeleteAdhanFileRequest) ProtoMessage

func (*DeleteAdhanFileRequest) ProtoMessage()

func (*DeleteAdhanFileRequest) ProtoReflect

func (x *DeleteAdhanFileRequest) ProtoReflect() protoreflect.Message

func (*DeleteAdhanFileRequest) Reset

func (x *DeleteAdhanFileRequest) Reset()

func (*DeleteAdhanFileRequest) String

func (x *DeleteAdhanFileRequest) String() string

type DeleteAdhanFileResponse

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

func (*DeleteAdhanFileResponse) Descriptor deprecated

func (*DeleteAdhanFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteAdhanFileResponse.ProtoReflect.Descriptor instead.

func (*DeleteAdhanFileResponse) ProtoMessage

func (*DeleteAdhanFileResponse) ProtoMessage()

func (*DeleteAdhanFileResponse) ProtoReflect

func (x *DeleteAdhanFileResponse) ProtoReflect() protoreflect.Message

func (*DeleteAdhanFileResponse) Reset

func (x *DeleteAdhanFileResponse) Reset()

func (*DeleteAdhanFileResponse) String

func (x *DeleteAdhanFileResponse) String() string

type DeleteEventRequest

type DeleteEventRequest struct {

	// The id of the event that should be deleted.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteEventRequest) Descriptor deprecated

func (*DeleteEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteEventRequest.ProtoReflect.Descriptor instead.

func (*DeleteEventRequest) GetId

func (x *DeleteEventRequest) GetId() string

func (*DeleteEventRequest) ProtoMessage

func (*DeleteEventRequest) ProtoMessage()

func (*DeleteEventRequest) ProtoReflect

func (x *DeleteEventRequest) ProtoReflect() protoreflect.Message

func (*DeleteEventRequest) Reset

func (x *DeleteEventRequest) Reset()

func (*DeleteEventRequest) String

func (x *DeleteEventRequest) String() string

type DeleteEventResponse

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

func (*DeleteEventResponse) Descriptor deprecated

func (*DeleteEventResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteEventResponse.ProtoReflect.Descriptor instead.

func (*DeleteEventResponse) ProtoMessage

func (*DeleteEventResponse) ProtoMessage()

func (*DeleteEventResponse) ProtoReflect

func (x *DeleteEventResponse) ProtoReflect() protoreflect.Message

func (*DeleteEventResponse) Reset

func (x *DeleteEventResponse) Reset()

func (*DeleteEventResponse) String

func (x *DeleteEventResponse) String() string

type DeleteMasjidRequest

type DeleteMasjidRequest struct {

	// The id of the masjid that should be deleted.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteMasjidRequest) Descriptor deprecated

func (*DeleteMasjidRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMasjidRequest.ProtoReflect.Descriptor instead.

func (*DeleteMasjidRequest) GetId

func (x *DeleteMasjidRequest) GetId() string

func (*DeleteMasjidRequest) ProtoMessage

func (*DeleteMasjidRequest) ProtoMessage()

func (*DeleteMasjidRequest) ProtoReflect

func (x *DeleteMasjidRequest) ProtoReflect() protoreflect.Message

func (*DeleteMasjidRequest) Reset

func (x *DeleteMasjidRequest) Reset()

func (*DeleteMasjidRequest) String

func (x *DeleteMasjidRequest) String() string

type DeleteMasjidResponse

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

func (*DeleteMasjidResponse) Descriptor deprecated

func (*DeleteMasjidResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteMasjidResponse.ProtoReflect.Descriptor instead.

func (*DeleteMasjidResponse) ProtoMessage

func (*DeleteMasjidResponse) ProtoMessage()

func (*DeleteMasjidResponse) ProtoReflect

func (x *DeleteMasjidResponse) ProtoReflect() protoreflect.Message

func (*DeleteMasjidResponse) Reset

func (x *DeleteMasjidResponse) Reset()

func (*DeleteMasjidResponse) String

func (x *DeleteMasjidResponse) String() string

type DeleteUserRequest

type DeleteUserRequest struct {

	// The id of the user to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteUserRequest) Descriptor deprecated

func (*DeleteUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.

func (*DeleteUserRequest) GetId

func (x *DeleteUserRequest) GetId() string

func (*DeleteUserRequest) ProtoMessage

func (*DeleteUserRequest) ProtoMessage()

func (*DeleteUserRequest) ProtoReflect

func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message

func (*DeleteUserRequest) Reset

func (x *DeleteUserRequest) Reset()

func (*DeleteUserRequest) String

func (x *DeleteUserRequest) String() string

type DeleteUserResponse

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

Empty response returned for DeleteUser RPC.

func (*DeleteUserResponse) Descriptor deprecated

func (*DeleteUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.

func (*DeleteUserResponse) ProtoMessage

func (*DeleteUserResponse) ProtoMessage()

func (*DeleteUserResponse) ProtoReflect

func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message

func (*DeleteUserResponse) Reset

func (x *DeleteUserResponse) Reset()

func (*DeleteUserResponse) String

func (x *DeleteUserResponse) String() string

type Event

type Event struct {

	// The unique id associated with the event.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The id of the organization which owns the event.
	OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// The name of the event.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	// The description of the event.
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	// The start time of the event.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The end time of the event.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// The gender restriction associated with the event.
	GenderRestriction Event_GenderRestriction `` /* 152-byte string literal not displayed */
	// The different event types associated with this event.
	Types []Event_EventType `protobuf:"varint,9,rep,packed,name=types,proto3,enum=limestone.Event_EventType" json:"types,omitempty"`
	// Whether or not the event is a paid event.
	IsPaid bool `protobuf:"varint,10,opt,name=is_paid,json=isPaid,proto3" json:"is_paid,omitempty"`
	// Whether or not the event requires RSVP.
	RequiresRsvp bool `protobuf:"varint,11,opt,name=requires_rsvp,json=requiresRsvp,proto3" json:"requires_rsvp,omitempty"`
	// The maximum number of participants for this event. If set to -1, then there
	// is no limit on the number of participants.
	MaxParticipants int32 `protobuf:"varint,12,opt,name=max_participants,json=maxParticipants,proto3" json:"max_participants,omitempty"`
	// The livestream link for this event. If empty, then there is no livestream
	// associated with the event.
	LivestreamLink string `protobuf:"bytes,13,opt,name=livestream_link,json=livestreamLink,proto3" json:"livestream_link,omitempty"`
	// The create time of the event. This field is output only.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The update time of the event. This field is output only.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetCreateTime

func (x *Event) GetCreateTime() *timestamppb.Timestamp

func (*Event) GetDescription

func (x *Event) GetDescription() string

func (*Event) GetEndTime

func (x *Event) GetEndTime() *timestamppb.Timestamp

func (*Event) GetGenderRestriction

func (x *Event) GetGenderRestriction() Event_GenderRestriction

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) GetIsPaid

func (x *Event) GetIsPaid() bool
func (x *Event) GetLivestreamLink() string

func (*Event) GetMaxParticipants

func (x *Event) GetMaxParticipants() int32

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetOrganizationId

func (x *Event) GetOrganizationId() string

func (*Event) GetRequiresRsvp

func (x *Event) GetRequiresRsvp() bool

func (*Event) GetStartTime

func (x *Event) GetStartTime() *timestamppb.Timestamp

func (*Event) GetTypes

func (x *Event) GetTypes() []Event_EventType

func (*Event) GetUpdateTime

func (x *Event) GetUpdateTime() *timestamppb.Timestamp

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventServiceClient

type EventServiceClient interface {
	// Creates a event in the database.
	CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*Event, error)
	// Updates a event in the database with the corresponding id to the given
	// event (i.e. all fields are overwritten).
	UpdateEvent(ctx context.Context, in *UpdateEventRequest, opts ...grpc.CallOption) (*Event, error)
	// Deletes a event from the database with the given id.
	DeleteEvent(ctx context.Context, in *DeleteEventRequest, opts ...grpc.CallOption) (*DeleteEventResponse, error)
	// Gets a event from the database with the given id.
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*Event, error)
	// Returns a paginated list of events from the database.
	ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EventServiceServer

type EventServiceServer interface {
	// Creates a event in the database.
	CreateEvent(context.Context, *CreateEventRequest) (*Event, error)
	// Updates a event in the database with the corresponding id to the given
	// event (i.e. all fields are overwritten).
	UpdateEvent(context.Context, *UpdateEventRequest) (*Event, error)
	// Deletes a event from the database with the given id.
	DeleteEvent(context.Context, *DeleteEventRequest) (*DeleteEventResponse, error)
	// Gets a event from the database with the given id.
	GetEvent(context.Context, *GetEventRequest) (*Event, error)
	// Returns a paginated list of events from the database.
	ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error)
	// contains filtered or unexported methods
}

EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility.

type Event_EventType

type Event_EventType int32

Specifies the different event types an event can be specified as.

const (
	// The event is a worship event such as Eid salah.
	Event_WORSHIP Event_EventType = 0
	// The event is an educational event such as a class or lecture.
	Event_EDUCATIONAL Event_EventType = 1
	// The event is a social community event.
	Event_COMMUNITY Event_EventType = 2
	// The event is an athletic event such as fitness class or a sports game.
	Event_ATHLETIC Event_EventType = 3
	// The event is related to fundraising.
	Event_FUNDRAISING Event_EventType = 4
	// The event is relevant to the youth.
	Event_YOUTH Event_EventType = 5
	// The event is specific to children.
	Event_CHILDREN_SPECIFIC Event_EventType = 6
	// The event is related to marriage.
	Event_MATRIMONIAL Event_EventType = 7
	// The event is a funeral.
	Event_FUNERAL Event_EventType = 8
)

func (Event_EventType) Descriptor

func (Event_EventType) Enum

func (x Event_EventType) Enum() *Event_EventType

func (Event_EventType) EnumDescriptor deprecated

func (Event_EventType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Event_EventType.Descriptor instead.

func (Event_EventType) Number

func (Event_EventType) String

func (x Event_EventType) String() string

func (Event_EventType) Type

type Event_GenderRestriction

type Event_GenderRestriction int32

Specifies the gender restriction associated with the event.

const (
	// No restriction on gender for event, aka co-ed.
	Event_NO_RESTRICTION Event_GenderRestriction = 0
	// Male only event.
	Event_MALE_ONLY Event_GenderRestriction = 1
	// Female only event.
	Event_FEMALE_ONLY Event_GenderRestriction = 2
)

func (Event_GenderRestriction) Descriptor

func (Event_GenderRestriction) Enum

func (Event_GenderRestriction) EnumDescriptor deprecated

func (Event_GenderRestriction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Event_GenderRestriction.Descriptor instead.

func (Event_GenderRestriction) Number

func (Event_GenderRestriction) String

func (x Event_GenderRestriction) String() string

func (Event_GenderRestriction) Type

type GetAdhanFileRequest

type GetAdhanFileRequest struct {

	// The adhan file id to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAdhanFileRequest) Descriptor deprecated

func (*GetAdhanFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetAdhanFileRequest.ProtoReflect.Descriptor instead.

func (*GetAdhanFileRequest) GetId

func (x *GetAdhanFileRequest) GetId() string

func (*GetAdhanFileRequest) ProtoMessage

func (*GetAdhanFileRequest) ProtoMessage()

func (*GetAdhanFileRequest) ProtoReflect

func (x *GetAdhanFileRequest) ProtoReflect() protoreflect.Message

func (*GetAdhanFileRequest) Reset

func (x *GetAdhanFileRequest) Reset()

func (*GetAdhanFileRequest) String

func (x *GetAdhanFileRequest) String() string

type GetEventRequest

type GetEventRequest struct {

	// The id of the event that should be returned.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEventRequest) Descriptor deprecated

func (*GetEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetId

func (x *GetEventRequest) GetId() string

func (*GetEventRequest) ProtoMessage

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect

func (x *GetEventRequest) ProtoReflect() protoreflect.Message

func (*GetEventRequest) Reset

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String

func (x *GetEventRequest) String() string

type GetMasjidRequest

type GetMasjidRequest struct {

	// The id of the masjid that should be returned.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMasjidRequest) Descriptor deprecated

func (*GetMasjidRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMasjidRequest.ProtoReflect.Descriptor instead.

func (*GetMasjidRequest) GetId

func (x *GetMasjidRequest) GetId() string

func (*GetMasjidRequest) ProtoMessage

func (*GetMasjidRequest) ProtoMessage()

func (*GetMasjidRequest) ProtoReflect

func (x *GetMasjidRequest) ProtoReflect() protoreflect.Message

func (*GetMasjidRequest) Reset

func (x *GetMasjidRequest) Reset()

func (*GetMasjidRequest) String

func (x *GetMasjidRequest) String() string

type GetUserRequest

type GetUserRequest struct {

	// The id of the user to get.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {

	// The authenticated user.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type ListEventsRequest

type ListEventsRequest struct {

	// The maximum number of events to return. Fewer events might be returned.
	// Default value is 25.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token from a previous `ListEvents` call. If this is provided, then the
	// next page will be returned.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsRequest) Descriptor deprecated

func (*ListEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead.

func (*ListEventsRequest) GetPageSize

func (x *ListEventsRequest) GetPageSize() int32

func (*ListEventsRequest) GetPageToken

func (x *ListEventsRequest) GetPageToken() string

func (*ListEventsRequest) ProtoMessage

func (*ListEventsRequest) ProtoMessage()

func (*ListEventsRequest) ProtoReflect

func (x *ListEventsRequest) ProtoReflect() protoreflect.Message

func (*ListEventsRequest) Reset

func (x *ListEventsRequest) Reset()

func (*ListEventsRequest) String

func (x *ListEventsRequest) String() string

type ListEventsResponse

type ListEventsResponse struct {

	// The list of returned events.
	Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*ListEventsResponse) Descriptor deprecated

func (*ListEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead.

func (*ListEventsResponse) GetEvents

func (x *ListEventsResponse) GetEvents() []*Event

func (*ListEventsResponse) ProtoMessage

func (*ListEventsResponse) ProtoMessage()

func (*ListEventsResponse) ProtoReflect

func (x *ListEventsResponse) ProtoReflect() protoreflect.Message

func (*ListEventsResponse) Reset

func (x *ListEventsResponse) Reset()

func (*ListEventsResponse) String

func (x *ListEventsResponse) String() string

type ListMasjidsRequest

type ListMasjidsRequest struct {

	// The maximum number of masjids to return. Fewer masjids might be returned.
	// Default value is 25.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A page token from a previous `ListMasjids` call. If this is provided, then the
	// next page will be returned.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMasjidsRequest) Descriptor deprecated

func (*ListMasjidsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListMasjidsRequest.ProtoReflect.Descriptor instead.

func (*ListMasjidsRequest) GetPageSize

func (x *ListMasjidsRequest) GetPageSize() int32

func (*ListMasjidsRequest) GetPageToken

func (x *ListMasjidsRequest) GetPageToken() string

func (*ListMasjidsRequest) ProtoMessage

func (*ListMasjidsRequest) ProtoMessage()

func (*ListMasjidsRequest) ProtoReflect

func (x *ListMasjidsRequest) ProtoReflect() protoreflect.Message

func (*ListMasjidsRequest) Reset

func (x *ListMasjidsRequest) Reset()

func (*ListMasjidsRequest) String

func (x *ListMasjidsRequest) String() string

type ListMasjidsResponse

type ListMasjidsResponse struct {

	// The list of returned masjids.
	Masjids []*Masjid `protobuf:"bytes,1,rep,name=masjids,proto3" json:"masjids,omitempty"`
	// contains filtered or unexported fields
}

func (*ListMasjidsResponse) Descriptor deprecated

func (*ListMasjidsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListMasjidsResponse.ProtoReflect.Descriptor instead.

func (*ListMasjidsResponse) GetMasjids

func (x *ListMasjidsResponse) GetMasjids() []*Masjid

func (*ListMasjidsResponse) ProtoMessage

func (*ListMasjidsResponse) ProtoMessage()

func (*ListMasjidsResponse) ProtoReflect

func (x *ListMasjidsResponse) ProtoReflect() protoreflect.Message

func (*ListMasjidsResponse) Reset

func (x *ListMasjidsResponse) Reset()

func (*ListMasjidsResponse) String

func (x *ListMasjidsResponse) String() string

type Masjid

type Masjid struct {

	// The unique id of the masjid. This field is output only.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the masjid.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Whether or not the masjid has been verified.
	IsVerified bool `protobuf:"varint,3,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"`
	// The main address of the masjid.
	Address *Masjid_Address `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	// The main phone number to contact for the masjid.
	PhoneNumber *Masjid_PhoneNumber `protobuf:"bytes,5,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	// The configuration to calculate prayer times for the masjid.
	PrayerConfig *PrayerTimesConfiguration `protobuf:"bytes,6,opt,name=prayer_config,json=prayerConfig,proto3" json:"prayer_config,omitempty"`
	// The create time of the Masjid. This field is output only.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The update time of the Masjid. This field is output only.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Defines a proto representing the main data corresponding to a masjid. This data includes the masjid name, address, phone number and prayer times configuration.

func (*Masjid) Descriptor deprecated

func (*Masjid) Descriptor() ([]byte, []int)

Deprecated: Use Masjid.ProtoReflect.Descriptor instead.

func (*Masjid) GetAddress

func (x *Masjid) GetAddress() *Masjid_Address

func (*Masjid) GetCreateTime

func (x *Masjid) GetCreateTime() *timestamppb.Timestamp

func (*Masjid) GetId

func (x *Masjid) GetId() string

func (*Masjid) GetIsVerified

func (x *Masjid) GetIsVerified() bool

func (*Masjid) GetName

func (x *Masjid) GetName() string

func (*Masjid) GetPhoneNumber

func (x *Masjid) GetPhoneNumber() *Masjid_PhoneNumber

func (*Masjid) GetPrayerConfig

func (x *Masjid) GetPrayerConfig() *PrayerTimesConfiguration

func (*Masjid) GetUpdateTime

func (x *Masjid) GetUpdateTime() *timestamppb.Timestamp

func (*Masjid) ProtoMessage

func (*Masjid) ProtoMessage()

func (*Masjid) ProtoReflect

func (x *Masjid) ProtoReflect() protoreflect.Message

func (*Masjid) Reset

func (x *Masjid) Reset()

func (*Masjid) String

func (x *Masjid) String() string

type MasjidRole

type MasjidRole struct {

	// The associated role.
	Role MasjidRole_Role `protobuf:"varint,1,opt,name=role,proto3,enum=limestone.MasjidRole_Role" json:"role,omitempty"`
	// The ID of the masjid associated with this role.
	MasjidId string `protobuf:"bytes,2,opt,name=masjid_id,json=masjidId,proto3" json:"masjid_id,omitempty"`
	// The ID of the associated user.
	UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

Defines a specific role a user might have for a specific masjid.

func (*MasjidRole) Descriptor deprecated

func (*MasjidRole) Descriptor() ([]byte, []int)

Deprecated: Use MasjidRole.ProtoReflect.Descriptor instead.

func (*MasjidRole) GetMasjidId

func (x *MasjidRole) GetMasjidId() string

func (*MasjidRole) GetRole

func (x *MasjidRole) GetRole() MasjidRole_Role

func (*MasjidRole) GetUserId

func (x *MasjidRole) GetUserId() string

func (*MasjidRole) ProtoMessage

func (*MasjidRole) ProtoMessage()

func (*MasjidRole) ProtoReflect

func (x *MasjidRole) ProtoReflect() protoreflect.Message

func (*MasjidRole) Reset

func (x *MasjidRole) Reset()

func (*MasjidRole) String

func (x *MasjidRole) String() string

type MasjidRole_Role

type MasjidRole_Role int32

Defines the different possible roles a user might have in a masjid.

const (
	// Default value.
	MasjidRole_ROLE_UNSPECIFIED MasjidRole_Role = 0
	// This role specifies someone who is just a member of the masjid.
	MasjidRole_MASJID_MEMBER MasjidRole_Role = 1
	// This role specifies someone who has some responsibility at the masjid
	// but is not an administrator.
	MasjidRole_MASJID_VOLUNTEER MasjidRole_Role = 2
	// This role specifies someone at the masjid who is involved in a
	// high-level administrative capacity.
	MasjidRole_MASJID_ADMIN MasjidRole_Role = 3
	// This role specifies someone at the masjid who is involved in a
	// religious capacity.
	MasjidRole_MASJID_IMAM MasjidRole_Role = 4
)

func (MasjidRole_Role) Descriptor

func (MasjidRole_Role) Enum

func (x MasjidRole_Role) Enum() *MasjidRole_Role

func (MasjidRole_Role) EnumDescriptor deprecated

func (MasjidRole_Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use MasjidRole_Role.Descriptor instead.

func (MasjidRole_Role) Number

func (MasjidRole_Role) String

func (x MasjidRole_Role) String() string

func (MasjidRole_Role) Type

type MasjidServiceClient

type MasjidServiceClient interface {
	// Creates a masjid in the database.
	CreateMasjid(ctx context.Context, in *CreateMasjidRequest, opts ...grpc.CallOption) (*Masjid, error)
	// Updates a masjid in the database with the corresponding id to the given
	// masjid (i.e. all fields are overwritten).
	UpdateMasjid(ctx context.Context, in *UpdateMasjidRequest, opts ...grpc.CallOption) (*Masjid, error)
	// Deletes a masjid from the database with the given id.
	DeleteMasjid(ctx context.Context, in *DeleteMasjidRequest, opts ...grpc.CallOption) (*DeleteMasjidResponse, error)
	// Gets a masjid from the database with the given id.
	GetMasjid(ctx context.Context, in *GetMasjidRequest, opts ...grpc.CallOption) (*Masjid, error)
	// Returns a paginated list of masjids from the database.
	ListMasjids(ctx context.Context, in *ListMasjidsRequest, opts ...grpc.CallOption) (*ListMasjidsResponse, error)
}

MasjidServiceClient is the client API for MasjidService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type MasjidServiceServer

type MasjidServiceServer interface {
	// Creates a masjid in the database.
	CreateMasjid(context.Context, *CreateMasjidRequest) (*Masjid, error)
	// Updates a masjid in the database with the corresponding id to the given
	// masjid (i.e. all fields are overwritten).
	UpdateMasjid(context.Context, *UpdateMasjidRequest) (*Masjid, error)
	// Deletes a masjid from the database with the given id.
	DeleteMasjid(context.Context, *DeleteMasjidRequest) (*DeleteMasjidResponse, error)
	// Gets a masjid from the database with the given id.
	GetMasjid(context.Context, *GetMasjidRequest) (*Masjid, error)
	// Returns a paginated list of masjids from the database.
	ListMasjids(context.Context, *ListMasjidsRequest) (*ListMasjidsResponse, error)
	// contains filtered or unexported methods
}

MasjidServiceServer is the server API for MasjidService service. All implementations must embed UnimplementedMasjidServiceServer for forward compatibility.

type Masjid_Address

type Masjid_Address struct {

	// The street address of the masjid.
	AddressLine_1 string `protobuf:"bytes,1,opt,name=address_line_1,json=addressLine1,proto3" json:"address_line_1,omitempty"`
	// Additional address information for the masjid, such as suite number, floor, etc.
	AddressLine_2 string `protobuf:"bytes,2,opt,name=address_line_2,json=addressLine2,proto3" json:"address_line_2,omitempty"`
	// The code of the administrative divisions in a country.
	// See https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country.Address
	// This field is what should be used for things like states or provinces.
	ZoneCode string `protobuf:"bytes,3,opt,name=zone_code,json=zoneCode,proto3" json:"zone_code,omitempty"`
	// The postal code of the masjid.
	PostalCode string `protobuf:"bytes,4,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
	// The city where the masjid is located.
	City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"`
	// A valid ISO 3166-1 country code. The full list can be found here: https://www.iban.com/country-codes.
	// Consider only the Alpha-2 code column.
	CountryCode string `protobuf:"bytes,6,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// contains filtered or unexported fields
}

Defines a postal address for the masjid. This message can be used across countries. The fields were inspired by this blog post: https://shopify.engineering/handling-addresses-from-all-around-the-world

func (*Masjid_Address) Descriptor deprecated

func (*Masjid_Address) Descriptor() ([]byte, []int)

Deprecated: Use Masjid_Address.ProtoReflect.Descriptor instead.

func (*Masjid_Address) GetAddressLine_1

func (x *Masjid_Address) GetAddressLine_1() string

func (*Masjid_Address) GetAddressLine_2

func (x *Masjid_Address) GetAddressLine_2() string

func (*Masjid_Address) GetCity

func (x *Masjid_Address) GetCity() string

func (*Masjid_Address) GetCountryCode

func (x *Masjid_Address) GetCountryCode() string

func (*Masjid_Address) GetPostalCode

func (x *Masjid_Address) GetPostalCode() string

func (*Masjid_Address) GetZoneCode

func (x *Masjid_Address) GetZoneCode() string

func (*Masjid_Address) ProtoMessage

func (*Masjid_Address) ProtoMessage()

func (*Masjid_Address) ProtoReflect

func (x *Masjid_Address) ProtoReflect() protoreflect.Message

func (*Masjid_Address) Reset

func (x *Masjid_Address) Reset()

func (*Masjid_Address) String

func (x *Masjid_Address) String() string

type Masjid_PhoneNumber

type Masjid_PhoneNumber struct {

	// The country code corresponding to the phone number.
	// Country codes are defined by ITU-T standards E.123 and E.164.
	// See https://en.wikipedia.org/wiki/List_of_country_calling_codes.
	CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// The phone number of the masjid.
	Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	// A extension for the number, if required.
	Extension string `protobuf:"bytes,3,opt,name=extension,proto3" json:"extension,omitempty"`
	// contains filtered or unexported fields
}

Defines the main phone number for the masjid.

func (*Masjid_PhoneNumber) Descriptor deprecated

func (*Masjid_PhoneNumber) Descriptor() ([]byte, []int)

Deprecated: Use Masjid_PhoneNumber.ProtoReflect.Descriptor instead.

func (*Masjid_PhoneNumber) GetCountryCode

func (x *Masjid_PhoneNumber) GetCountryCode() string

func (*Masjid_PhoneNumber) GetExtension

func (x *Masjid_PhoneNumber) GetExtension() string

func (*Masjid_PhoneNumber) GetNumber

func (x *Masjid_PhoneNumber) GetNumber() string

func (*Masjid_PhoneNumber) ProtoMessage

func (*Masjid_PhoneNumber) ProtoMessage()

func (*Masjid_PhoneNumber) ProtoReflect

func (x *Masjid_PhoneNumber) ProtoReflect() protoreflect.Message

func (*Masjid_PhoneNumber) Reset

func (x *Masjid_PhoneNumber) Reset()

func (*Masjid_PhoneNumber) String

func (x *Masjid_PhoneNumber) String() string

type PrayerTimesConfiguration

type PrayerTimesConfiguration struct {

	// The calculation method to use.
	Method PrayerTimesConfiguration_CalculationMethod `protobuf:"varint,1,opt,name=method,proto3,enum=limestone.PrayerTimesConfiguration_CalculationMethod" json:"method,omitempty"`
	// The Fajr angle to use. This does not need to be set if the calculation method is set.
	// If both fields are set, then the calculation method field takes precedence.
	FajrAngle float64 `protobuf:"fixed64,2,opt,name=fajr_angle,json=fajrAngle,proto3" json:"fajr_angle,omitempty"`
	// The Isha angle to use. This does not need to be set if the calculation method is set.
	// If both fields are set, then the calculation method field takes precedence.
	IshaAngle float64 `protobuf:"fixed64,3,opt,name=isha_angle,json=ishaAngle,proto3" json:"isha_angle,omitempty"`
	// Minutes after Maghrib (if set, the time for Isha will be Maghrib plus the Isha interval).
	IshaInterval int32 `protobuf:"varint,4,opt,name=isha_interval,json=ishaInterval,proto3" json:"isha_interval,omitempty"`
	// The juristic method to use for calculating Asr timings.
	AsrMethod PrayerTimesConfiguration_AsrJuristicMethod `` /* 147-byte string literal not displayed */
	// The high latitude rule to use to calculate Fajr and Isha prayers.
	HighLatitudeRule PrayerTimesConfiguration_HighLatitudeRule `` /* 169-byte string literal not displayed */
	// The prayer adjusments (aka offsets) to apply to the calculated prayer times.
	Adjustments *PrayerTimesConfiguration_PrayerAdjustments `protobuf:"bytes,7,opt,name=adjustments,proto3" json:"adjustments,omitempty"`
	// contains filtered or unexported fields
}

A message that holds prayer times configuration. This message contains all the fields necessary to calculate prayer times.

func (*PrayerTimesConfiguration) Descriptor deprecated

func (*PrayerTimesConfiguration) Descriptor() ([]byte, []int)

Deprecated: Use PrayerTimesConfiguration.ProtoReflect.Descriptor instead.

func (*PrayerTimesConfiguration) GetAdjustments

func (*PrayerTimesConfiguration) GetAsrMethod

func (*PrayerTimesConfiguration) GetFajrAngle

func (x *PrayerTimesConfiguration) GetFajrAngle() float64

func (*PrayerTimesConfiguration) GetHighLatitudeRule

func (*PrayerTimesConfiguration) GetIshaAngle

func (x *PrayerTimesConfiguration) GetIshaAngle() float64

func (*PrayerTimesConfiguration) GetIshaInterval

func (x *PrayerTimesConfiguration) GetIshaInterval() int32

func (*PrayerTimesConfiguration) GetMethod

func (*PrayerTimesConfiguration) ProtoMessage

func (*PrayerTimesConfiguration) ProtoMessage()

func (*PrayerTimesConfiguration) ProtoReflect

func (x *PrayerTimesConfiguration) ProtoReflect() protoreflect.Message

func (*PrayerTimesConfiguration) Reset

func (x *PrayerTimesConfiguration) Reset()

func (*PrayerTimesConfiguration) String

func (x *PrayerTimesConfiguration) String() string

type PrayerTimesConfiguration_AsrJuristicMethod

type PrayerTimesConfiguration_AsrJuristicMethod int32

The Juristic method to use for calculating Asr prayer times.

const (
	// Use the Shafi/Hanbali/Maliki method to calculate Asr timings.
	PrayerTimesConfiguration_SHAFI_HANBALI_MALIKI PrayerTimesConfiguration_AsrJuristicMethod = 0
	// Use the Hanafi method to calculate Asr timings.
	PrayerTimesConfiguration_HANAFI PrayerTimesConfiguration_AsrJuristicMethod = 1
)

func (PrayerTimesConfiguration_AsrJuristicMethod) Descriptor

func (PrayerTimesConfiguration_AsrJuristicMethod) Enum

func (PrayerTimesConfiguration_AsrJuristicMethod) EnumDescriptor deprecated

func (PrayerTimesConfiguration_AsrJuristicMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use PrayerTimesConfiguration_AsrJuristicMethod.Descriptor instead.

func (PrayerTimesConfiguration_AsrJuristicMethod) Number

func (PrayerTimesConfiguration_AsrJuristicMethod) String

func (PrayerTimesConfiguration_AsrJuristicMethod) Type

type PrayerTimesConfiguration_CalculationMethod

type PrayerTimesConfiguration_CalculationMethod int32

Defines the calculation method to use. If this field is set (excluding OTHER), then the Fajr and Isha angle fields are automatically set.

const (
	// A custom calculation method.
	PrayerTimesConfiguration_OTHER PrayerTimesConfiguration_CalculationMethod = 0
	// Muslim World League
	// Uses Fajr angle of 18 and an Isha angle of 17
	PrayerTimesConfiguration_MUSLIM_WORLD_LEAGUE PrayerTimesConfiguration_CalculationMethod = 1
	// Egyptian General Authority of Survey
	// Uses Fajr angle of 19.5 and an Isha angle of 17.5
	PrayerTimesConfiguration_EGYPTIAN PrayerTimesConfiguration_CalculationMethod = 2
	// University of Islamic Sciences, Karachi
	// Uses Fajr angle of 18 and an Isha angle of 18
	PrayerTimesConfiguration_KARACHI PrayerTimesConfiguration_CalculationMethod = 3
	// Umm al-Qura University, Makkah
	// Uses a Fajr angle of 18.5 and an Isha angle of 90. Note: You should add a +30 minute custom
	// adjustment of Isha during Ramadan.
	PrayerTimesConfiguration_UMM_AL_QURA PrayerTimesConfiguration_CalculationMethod = 4
	// The Gulf Region
	// Uses Fajr and Isha angles of 18.2 degrees.
	PrayerTimesConfiguration_DUBAI PrayerTimesConfiguration_CalculationMethod = 5
	// Moonsighting Committee
	// Uses a Fajr angle of 18 and an Isha angle of 18. Also uses seasonal adjustment values.
	PrayerTimesConfiguration_MOON_SIGHTING_COMMITTEE PrayerTimesConfiguration_CalculationMethod = 6
	// Referred to as the ISNA method
	// This method is included for completeness, but is not recommended.
	// Uses a Fajr angle of 15 and an Isha angle of 15.
	PrayerTimesConfiguration_NORTH_AMERICA PrayerTimesConfiguration_CalculationMethod = 7
	// Kuwait
	// Uses a Fajr angle of 18 and an Isha angle of 17.5
	PrayerTimesConfiguration_KUWAIT PrayerTimesConfiguration_CalculationMethod = 8
	// Qatar
	// Modified version of Umm al-Qura that uses a Fajr angle of 18.
	PrayerTimesConfiguration_QATAR PrayerTimesConfiguration_CalculationMethod = 9
	// Singapore
	// Uses a Fajr angle of 20 and an Isha angle of 18
	PrayerTimesConfiguration_SINGAPORE PrayerTimesConfiguration_CalculationMethod = 10
	// UOIF
	// Uses a Fajr angle of 12 and an Isha angle of 12
	PrayerTimesConfiguration_UOIF PrayerTimesConfiguration_CalculationMethod = 11
)

func (PrayerTimesConfiguration_CalculationMethod) Descriptor

func (PrayerTimesConfiguration_CalculationMethod) Enum

func (PrayerTimesConfiguration_CalculationMethod) EnumDescriptor deprecated

func (PrayerTimesConfiguration_CalculationMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use PrayerTimesConfiguration_CalculationMethod.Descriptor instead.

func (PrayerTimesConfiguration_CalculationMethod) Number

func (PrayerTimesConfiguration_CalculationMethod) String

func (PrayerTimesConfiguration_CalculationMethod) Type

type PrayerTimesConfiguration_HighLatitudeRule

type PrayerTimesConfiguration_HighLatitudeRule int32

The high latitude rule for calculating Fajr and Isha prayers.

const (
	PrayerTimesConfiguration_NO_HIGH_LATITUDE_RULE PrayerTimesConfiguration_HighLatitudeRule = 0
	// Fajr will never be earlier than the middle of the night, and Isha will never be later than
	// the middle of the night.
	PrayerTimesConfiguration_MIDDLE_OF_THE_NIGHT PrayerTimesConfiguration_HighLatitudeRule = 1
	// Fajr will never be earlier than the beginning of the last seventh of the night, and Isha will
	// never be later than the end of the first seventh of the night.
	PrayerTimesConfiguration_SEVENTH_OF_THE_NIGHT PrayerTimesConfiguration_HighLatitudeRule = 2
	// Similar to SEVENTH_OF_THE_NIGHT, but instead of 1/7th, the fraction of the night used
	// is fajr_angle / 60 and isha_angle / 60.
	PrayerTimesConfiguration_TWILIGHT_ANGLE PrayerTimesConfiguration_HighLatitudeRule = 3
)

func (PrayerTimesConfiguration_HighLatitudeRule) Descriptor

func (PrayerTimesConfiguration_HighLatitudeRule) Enum

func (PrayerTimesConfiguration_HighLatitudeRule) EnumDescriptor deprecated

func (PrayerTimesConfiguration_HighLatitudeRule) EnumDescriptor() ([]byte, []int)

Deprecated: Use PrayerTimesConfiguration_HighLatitudeRule.Descriptor instead.

func (PrayerTimesConfiguration_HighLatitudeRule) Number

func (PrayerTimesConfiguration_HighLatitudeRule) String

func (PrayerTimesConfiguration_HighLatitudeRule) Type

type PrayerTimesConfiguration_PrayerAdjustments

type PrayerTimesConfiguration_PrayerAdjustments struct {

	// Adjustment offset for Fajr in minutes. Value can be negative.
	FajrAdjustment int32 `protobuf:"varint,1,opt,name=fajr_adjustment,json=fajrAdjustment,proto3" json:"fajr_adjustment,omitempty"`
	// Adjustment offset for Dhuhr in minutes. Value can be negative.
	DhuhrAdjustment int32 `protobuf:"varint,2,opt,name=dhuhr_adjustment,json=dhuhrAdjustment,proto3" json:"dhuhr_adjustment,omitempty"`
	// Adjustment offset for Asr in minutes. Value can be negative.
	AsrAdjustment int32 `protobuf:"varint,3,opt,name=asr_adjustment,json=asrAdjustment,proto3" json:"asr_adjustment,omitempty"`
	// Adjustment offset for Maghrib in minutes. Value can be negative.
	MaghribAdjustment int32 `protobuf:"varint,4,opt,name=maghrib_adjustment,json=maghribAdjustment,proto3" json:"maghrib_adjustment,omitempty"`
	// Adjustment offset for Isha in minutes. Value can be negative.
	IshaAdjustment int32 `protobuf:"varint,5,opt,name=isha_adjustment,json=ishaAdjustment,proto3" json:"isha_adjustment,omitempty"`
	// contains filtered or unexported fields
}

The manual adjustments to apply to the prayer timings. The value that each field is set to is the offset which will be added to the calculated time to obtain the final prayer time.

func (*PrayerTimesConfiguration_PrayerAdjustments) Descriptor deprecated

Deprecated: Use PrayerTimesConfiguration_PrayerAdjustments.ProtoReflect.Descriptor instead.

func (*PrayerTimesConfiguration_PrayerAdjustments) GetAsrAdjustment

func (x *PrayerTimesConfiguration_PrayerAdjustments) GetAsrAdjustment() int32

func (*PrayerTimesConfiguration_PrayerAdjustments) GetDhuhrAdjustment

func (x *PrayerTimesConfiguration_PrayerAdjustments) GetDhuhrAdjustment() int32

func (*PrayerTimesConfiguration_PrayerAdjustments) GetFajrAdjustment

func (x *PrayerTimesConfiguration_PrayerAdjustments) GetFajrAdjustment() int32

func (*PrayerTimesConfiguration_PrayerAdjustments) GetIshaAdjustment

func (x *PrayerTimesConfiguration_PrayerAdjustments) GetIshaAdjustment() int32

func (*PrayerTimesConfiguration_PrayerAdjustments) GetMaghribAdjustment

func (x *PrayerTimesConfiguration_PrayerAdjustments) GetMaghribAdjustment() int32

func (*PrayerTimesConfiguration_PrayerAdjustments) ProtoMessage

func (*PrayerTimesConfiguration_PrayerAdjustments) ProtoReflect

func (*PrayerTimesConfiguration_PrayerAdjustments) Reset

func (*PrayerTimesConfiguration_PrayerAdjustments) String

type RefreshTokenRequest

type RefreshTokenRequest struct {

	// The refresh JWT for the user.
	RefreshToken string `protobuf:"bytes,1,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenRequest) Descriptor deprecated

func (*RefreshTokenRequest) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshToken

func (x *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) ProtoMessage

func (*RefreshTokenRequest) ProtoMessage()

func (*RefreshTokenRequest) ProtoReflect

func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message

func (*RefreshTokenRequest) Reset

func (x *RefreshTokenRequest) Reset()

func (*RefreshTokenRequest) String

func (x *RefreshTokenRequest) String() string

type RefreshTokenResponse

type RefreshTokenResponse struct {

	// The access token for subsequent authenticated requests.
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshTokenResponse) Descriptor deprecated

func (*RefreshTokenResponse) Descriptor() ([]byte, []int)

Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*RefreshTokenResponse) GetAccessToken

func (x *RefreshTokenResponse) GetAccessToken() string

func (*RefreshTokenResponse) ProtoMessage

func (*RefreshTokenResponse) ProtoMessage()

func (*RefreshTokenResponse) ProtoReflect

func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message

func (*RefreshTokenResponse) Reset

func (x *RefreshTokenResponse) Reset()

func (*RefreshTokenResponse) String

func (x *RefreshTokenResponse) String() string

type UnimplementedAdhanServiceServer

type UnimplementedAdhanServiceServer struct{}

UnimplementedAdhanServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAdhanServiceServer) CreateAdhanFile

func (UnimplementedAdhanServiceServer) DeleteAdhanFile

func (UnimplementedAdhanServiceServer) GetAdhanFile

func (UnimplementedAdhanServiceServer) UpdateAdhanFile

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct{}

UnimplementedEventServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventServiceServer) CreateEvent

func (UnimplementedEventServiceServer) DeleteEvent

func (UnimplementedEventServiceServer) GetEvent

func (UnimplementedEventServiceServer) ListEvents

func (UnimplementedEventServiceServer) UpdateEvent

type UnimplementedMasjidServiceServer

type UnimplementedMasjidServiceServer struct{}

UnimplementedMasjidServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedMasjidServiceServer) CreateMasjid

func (UnimplementedMasjidServiceServer) DeleteMasjid

func (UnimplementedMasjidServiceServer) GetMasjid

func (UnimplementedMasjidServiceServer) ListMasjids

func (UnimplementedMasjidServiceServer) UpdateMasjid

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct{}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserServiceServer) AuthenticateUser

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) RefreshToken

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeAdhanServiceServer

type UnsafeAdhanServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAdhanServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdhanServiceServer will result in compilation errors.

type UnsafeEventServiceServer

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

type UnsafeMasjidServiceServer

type UnsafeMasjidServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeMasjidServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MasjidServiceServer will result in compilation errors.

type UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type UpdateAdhanFileRequest

type UpdateAdhanFileRequest struct {

	// The adhan file to update to. The file associated with the id
	// will be updated to this given adhan file.
	//
	// The adhan file's `id` field is used to identify the book to update.
	// Format: adhan_files/{adhan_file}
	AdhanFile *AdhanFile `protobuf:"bytes,1,opt,name=adhan_file,json=adhanFile,proto3" json:"adhan_file,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAdhanFileRequest) Descriptor deprecated

func (*UpdateAdhanFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateAdhanFileRequest.ProtoReflect.Descriptor instead.

func (*UpdateAdhanFileRequest) GetAdhanFile

func (x *UpdateAdhanFileRequest) GetAdhanFile() *AdhanFile

func (*UpdateAdhanFileRequest) ProtoMessage

func (*UpdateAdhanFileRequest) ProtoMessage()

func (*UpdateAdhanFileRequest) ProtoReflect

func (x *UpdateAdhanFileRequest) ProtoReflect() protoreflect.Message

func (*UpdateAdhanFileRequest) Reset

func (x *UpdateAdhanFileRequest) Reset()

func (*UpdateAdhanFileRequest) String

func (x *UpdateAdhanFileRequest) String() string

type UpdateEventRequest

type UpdateEventRequest struct {

	// The event to update in the database.
	//
	// The event's `id` field is used to identify the book to update.
	// Format: events/{event}
	Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateEventRequest) Descriptor deprecated

func (*UpdateEventRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateEventRequest.ProtoReflect.Descriptor instead.

func (*UpdateEventRequest) GetEvent

func (x *UpdateEventRequest) GetEvent() *Event

func (*UpdateEventRequest) ProtoMessage

func (*UpdateEventRequest) ProtoMessage()

func (*UpdateEventRequest) ProtoReflect

func (x *UpdateEventRequest) ProtoReflect() protoreflect.Message

func (*UpdateEventRequest) Reset

func (x *UpdateEventRequest) Reset()

func (*UpdateEventRequest) String

func (x *UpdateEventRequest) String() string

type UpdateMasjidRequest

type UpdateMasjidRequest struct {

	// The masjid to update in the database.
	//
	// The masjid's `id` field is used to identify the book to update.
	// Format: masjids/{masjid}
	Masjid *Masjid `protobuf:"bytes,1,opt,name=masjid,proto3" json:"masjid,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMasjidRequest) Descriptor deprecated

func (*UpdateMasjidRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMasjidRequest.ProtoReflect.Descriptor instead.

func (*UpdateMasjidRequest) GetMasjid

func (x *UpdateMasjidRequest) GetMasjid() *Masjid

func (*UpdateMasjidRequest) ProtoMessage

func (*UpdateMasjidRequest) ProtoMessage()

func (*UpdateMasjidRequest) ProtoReflect

func (x *UpdateMasjidRequest) ProtoReflect() protoreflect.Message

func (*UpdateMasjidRequest) Reset

func (x *UpdateMasjidRequest) Reset()

func (*UpdateMasjidRequest) String

func (x *UpdateMasjidRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {

	// The updated user proto.
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

func (*UpdateUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetUser

func (x *UpdateUserRequest) GetUser() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {

	// The ID of the user. This field is output only.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The email of the user. This field is required and must be unique.
	Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// The username of the user. This field is required and must be unique.
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// Whether or not the email of the user was verified.
	IsEmailVerified bool `protobuf:"varint,4,opt,name=is_email_verified,json=isEmailVerified,proto3" json:"is_email_verified,omitempty"`
	// The first name of the user.
	FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
	// The last name of the user.
	LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
	// The phone number associated with the user.
	PhoneNumber string      `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
	Gender      User_Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=limestone.User_Gender" json:"gender,omitempty"`
	// The create time of the user. This field is output only.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The update time of the user. This field is output only.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Defines a User.

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreateTime

func (x *User) GetCreateTime() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFirstName

func (x *User) GetFirstName() string

func (*User) GetGender

func (x *User) GetGender() User_Gender

func (*User) GetId

func (x *User) GetId() string

func (*User) GetIsEmailVerified

func (x *User) GetIsEmailVerified() bool

func (*User) GetLastName

func (x *User) GetLastName() string

func (*User) GetPhoneNumber

func (x *User) GetPhoneNumber() string

func (*User) GetUpdateTime

func (x *User) GetUpdateTime() *timestamppb.Timestamp

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserServiceClient

type UserServiceClient interface {
	// Creates the given User with the given password.
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Gets a User from the database and tokens provided the auth token is valid.
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	// Updates a User to the given User in the request provided the auth token is valid.
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*User, error)
	// Deletes a User from the database provided the auth token is valid.
	DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error)
	// Authenticates a user based on their username or email and password
	AuthenticateUser(ctx context.Context, in *AuthenticateUserRequest, opts ...grpc.CallOption) (*AuthenticateUserResponse, error)
	// Refreshes an existing authentication token
	RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, error)
}

UserServiceClient is the client API for UserService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserServiceServer

type UserServiceServer interface {
	// Creates the given User with the given password.
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	// Gets a User from the database and tokens provided the auth token is valid.
	GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
	// Updates a User to the given User in the request provided the auth token is valid.
	UpdateUser(context.Context, *UpdateUserRequest) (*User, error)
	// Deletes a User from the database provided the auth token is valid.
	DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
	// Authenticates a user based on their username or email and password
	AuthenticateUser(context.Context, *AuthenticateUserRequest) (*AuthenticateUserResponse, error)
	// Refreshes an existing authentication token
	RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility.

type User_Gender

type User_Gender int32

Defines an enum representing the gender of the user.

const (
	// Default value.
	User_GENDER_UNSPECIFIED User_Gender = 0
	User_MALE               User_Gender = 1
	User_FEMALE             User_Gender = 2
)

func (User_Gender) Descriptor

func (User_Gender) Enum

func (x User_Gender) Enum() *User_Gender

func (User_Gender) EnumDescriptor deprecated

func (User_Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use User_Gender.Descriptor instead.

func (User_Gender) Number

func (x User_Gender) Number() protoreflect.EnumNumber

func (User_Gender) String

func (x User_Gender) String() string

func (User_Gender) Type

Jump to

Keyboard shortcuts

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