proto

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

README

Protobuf Generation Status

✅ Successfully Generated Files

Core Protobuf Files
  • hmly.pb.go - Contains all message types (requests/responses)
  • hmly_grpc.pb.go - Contains service client/server interfaces
  • hmly.pb.gw.go - Contains gRPC gateway HTTP handlers
Helper Files
  • gateway.go - Consolidated registration functions
  • gateway_examples.go - Example usage patterns
  • gateway_test.go - Tests for gateway functions

🎯 Available Service Interfaces

Service Clients
  • HouseholdServiceClient
  • MemberServiceClient
  • MealServiceClient
  • EventServiceClient
Service Servers
  • HouseholdServiceServer
  • MemberServiceServer
  • MealServiceServer
  • EventServiceServer

📝 Available Message Types

Household Messages
  • CreateHouseholdRequest, HouseholdResponse
  • GetHouseholdRequest, GetHouseHoldsRequest
  • UpdateHouseholdRequest, HouseholdsResponse
Member Messages
  • CreateMemberRequest, MemberResponse
  • GetMemberRequest, GetMembersRequest
  • UpdateMemberRequest, MembersResponse
Meal Messages
  • CreateMealRequest, MealResponse
  • GetMealRequest, GetMealsRequest
  • UpdateMealRequest, MealsResponse
Event Messages
  • CreateEventRequest, EventResponse
  • GetEventRequest, GetEventsRequest
  • UpdateEventRequest, EventsResponse

🚀 Quick Usage

import "github.com/hmlylab/common/proto"

// Option 1: Connect to external gRPC server
err := proto.SetupGatewayFromEndpoint("localhost:50051", "8080")

// Option 2: Use existing connection  
err := proto.SetupGatewayWithConnection(conn, "8080")

// Option 3: Register individual services
ctx := context.Background()
mux := runtime.NewServeMux()
err := proto.RegisterAllHandlersFromEndpoint(ctx, mux, endpoint, opts)

✅ Status: FIXED

The protobuf generation is working correctly. All service interfaces and message types are properly generated and accessible.

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	HouseholdService_CreateHousehold_FullMethodName = "/api.HouseholdService/CreateHousehold"
	HouseholdService_GetHousehold_FullMethodName    = "/api.HouseholdService/GetHousehold"
	HouseholdService_GetHouseholds_FullMethodName   = "/api.HouseholdService/GetHouseholds"
	HouseholdService_UpdateHousehold_FullMethodName = "/api.HouseholdService/UpdateHousehold"
	HouseholdService_DeleteHousehold_FullMethodName = "/api.HouseholdService/DeleteHousehold"
)
View Source
const (
	MemberService_CreateMember_FullMethodName = "/api.MemberService/CreateMember"
	MemberService_GetMember_FullMethodName    = "/api.MemberService/GetMember"
	MemberService_GetMembers_FullMethodName   = "/api.MemberService/GetMembers"
	MemberService_UpdateMember_FullMethodName = "/api.MemberService/UpdateMember"
	MemberService_DeleteMember_FullMethodName = "/api.MemberService/DeleteMember"
)
View Source
const (
	MealService_CreateMeal_FullMethodName = "/api.MealService/CreateMeal"
	MealService_GetMeal_FullMethodName    = "/api.MealService/GetMeal"
	MealService_GetMeals_FullMethodName   = "/api.MealService/GetMeals"
	MealService_UpdateMeal_FullMethodName = "/api.MealService/UpdateMeal"
	MealService_DeleteMeal_FullMethodName = "/api.MealService/DeleteMeal"
)
View Source
const (
	EventService_CreateEvent_FullMethodName = "/api.EventService/CreateEvent"
	EventService_GetEvent_FullMethodName    = "/api.EventService/GetEvent"
	EventService_GetEvents_FullMethodName   = "/api.EventService/GetEvents"
	EventService_UpdateEvent_FullMethodName = "/api.EventService/UpdateEvent"
	EventService_DeleteEvent_FullMethodName = "/api.EventService/DeleteEvent"
)

Variables

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateEvent",
			Handler:    _EventService_CreateEvent_Handler,
		},
		{
			MethodName: "GetEvent",
			Handler:    _EventService_GetEvent_Handler,
		},
		{
			MethodName: "GetEvents",
			Handler:    _EventService_GetEvents_Handler,
		},
		{
			MethodName: "UpdateEvent",
			Handler:    _EventService_UpdateEvent_Handler,
		},
		{
			MethodName: "DeleteEvent",
			Handler:    _EventService_DeleteEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hmly.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 HouseholdService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.HouseholdService",
	HandlerType: (*HouseholdServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateHousehold",
			Handler:    _HouseholdService_CreateHousehold_Handler,
		},
		{
			MethodName: "GetHousehold",
			Handler:    _HouseholdService_GetHousehold_Handler,
		},
		{
			MethodName: "GetHouseholds",
			Handler:    _HouseholdService_GetHouseholds_Handler,
		},
		{
			MethodName: "UpdateHousehold",
			Handler:    _HouseholdService_UpdateHousehold_Handler,
		},
		{
			MethodName: "DeleteHousehold",
			Handler:    _HouseholdService_DeleteHousehold_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hmly.proto",
}

HouseholdService_ServiceDesc is the grpc.ServiceDesc for HouseholdService 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 MealService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.MealService",
	HandlerType: (*MealServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMeal",
			Handler:    _MealService_CreateMeal_Handler,
		},
		{
			MethodName: "GetMeal",
			Handler:    _MealService_GetMeal_Handler,
		},
		{
			MethodName: "GetMeals",
			Handler:    _MealService_GetMeals_Handler,
		},
		{
			MethodName: "UpdateMeal",
			Handler:    _MealService_UpdateMeal_Handler,
		},
		{
			MethodName: "DeleteMeal",
			Handler:    _MealService_DeleteMeal_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hmly.proto",
}

MealService_ServiceDesc is the grpc.ServiceDesc for MealService 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 MemberService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.MemberService",
	HandlerType: (*MemberServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateMember",
			Handler:    _MemberService_CreateMember_Handler,
		},
		{
			MethodName: "GetMember",
			Handler:    _MemberService_GetMember_Handler,
		},
		{
			MethodName: "GetMembers",
			Handler:    _MemberService_GetMembers_Handler,
		},
		{
			MethodName: "UpdateMember",
			Handler:    _MemberService_UpdateMember_Handler,
		},
		{
			MethodName: "DeleteMember",
			Handler:    _MemberService_DeleteMember_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hmly.proto",
}

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

Functions

func RegisterEventServiceHandler added in v1.0.40

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 added in v1.0.40

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. This client ignores the HTTP middlewares.

func RegisterEventServiceHandlerFromEndpoint added in v1.0.40

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 added in v1.0.40

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. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterEventServiceServer added in v0.1.2

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterHouseholdServiceHandler added in v1.0.40

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

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

func RegisterHouseholdServiceHandlerClient added in v1.0.40

func RegisterHouseholdServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client HouseholdServiceClient) error

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

func RegisterHouseholdServiceHandlerFromEndpoint added in v1.0.40

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

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

func RegisterHouseholdServiceHandlerServer added in v1.0.40

func RegisterHouseholdServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server HouseholdServiceServer) error

RegisterHouseholdServiceHandlerServer registers the http handlers for service HouseholdService to "mux". UnaryRPC :call HouseholdServiceServer 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 RegisterHouseholdServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterHouseholdServiceServer

func RegisterHouseholdServiceServer(s grpc.ServiceRegistrar, srv HouseholdServiceServer)

func RegisterMealServiceHandler added in v1.0.40

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

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

func RegisterMealServiceHandlerClient added in v1.0.40

func RegisterMealServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MealServiceClient) error

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

func RegisterMealServiceHandlerFromEndpoint added in v1.0.40

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

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

func RegisterMealServiceHandlerServer added in v1.0.40

func RegisterMealServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MealServiceServer) error

RegisterMealServiceHandlerServer registers the http handlers for service MealService to "mux". UnaryRPC :call MealServiceServer 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 RegisterMealServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterMealServiceServer added in v0.1.2

func RegisterMealServiceServer(s grpc.ServiceRegistrar, srv MealServiceServer)

func RegisterMemberServiceHandler added in v1.0.40

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

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

func RegisterMemberServiceHandlerClient added in v1.0.40

func RegisterMemberServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MemberServiceClient) error

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

func RegisterMemberServiceHandlerFromEndpoint added in v1.0.40

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

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

func RegisterMemberServiceHandlerServer added in v1.0.40

func RegisterMemberServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MemberServiceServer) error

RegisterMemberServiceHandlerServer registers the http handlers for service MemberService to "mux". UnaryRPC :call MemberServiceServer 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 RegisterMemberServiceHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterMemberServiceServer added in v0.1.2

func RegisterMemberServiceServer(s grpc.ServiceRegistrar, srv MemberServiceServer)

Types

type CreateEventRequest added in v0.1.2

type CreateEventRequest struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                               // Descriptive name for the event
	EntityId   string `protobuf:"bytes,2,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`       // ID of the entity this event relates to
	EntityType string `protobuf:"bytes,3,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // Type of entity (e.g., "household", "meal", "member")
	StartDate  string `protobuf:"bytes,4,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`    // ISO 8601 start date/time for the event
	EndDate    string `protobuf:"bytes,5,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`          // ISO 8601 end date/time for the event
	AssignedTo string `protobuf:"bytes,6,opt,name=assigned_to,json=assignedTo,proto3" json:"assigned_to,omitempty"` // User ID of the person assigned to this event
	// contains filtered or unexported fields
}

CreateEventRequest creates a new scheduled event. Events are flexible and can be associated with any entity type.

func (*CreateEventRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use CreateEventRequest.ProtoReflect.Descriptor instead.

func (*CreateEventRequest) GetAssignedTo added in v0.1.2

func (x *CreateEventRequest) GetAssignedTo() string

func (*CreateEventRequest) GetEndDate added in v0.1.2

func (x *CreateEventRequest) GetEndDate() string

func (*CreateEventRequest) GetEntityId added in v0.1.2

func (x *CreateEventRequest) GetEntityId() string

func (*CreateEventRequest) GetEntityType added in v0.1.2

func (x *CreateEventRequest) GetEntityType() string

func (*CreateEventRequest) GetName added in v0.1.2

func (x *CreateEventRequest) GetName() string

func (*CreateEventRequest) GetStartDate added in v0.1.2

func (x *CreateEventRequest) GetStartDate() string

func (*CreateEventRequest) ProtoMessage added in v0.1.2

func (*CreateEventRequest) ProtoMessage()

func (*CreateEventRequest) ProtoReflect added in v0.1.2

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

func (*CreateEventRequest) Reset added in v0.1.2

func (x *CreateEventRequest) Reset()

func (*CreateEventRequest) String added in v0.1.2

func (x *CreateEventRequest) String() string

type CreateHouseholdRequest

type CreateHouseholdRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Display name for the household (e.g., "The Smith Family")
	// contains filtered or unexported fields
}

CreateHouseholdRequest is used to create a new household. Only requires a name to establish the household identity.

func (*CreateHouseholdRequest) Descriptor deprecated

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

Deprecated: Use CreateHouseholdRequest.ProtoReflect.Descriptor instead.

func (*CreateHouseholdRequest) GetName

func (x *CreateHouseholdRequest) GetName() string

func (*CreateHouseholdRequest) ProtoMessage

func (*CreateHouseholdRequest) ProtoMessage()

func (*CreateHouseholdRequest) ProtoReflect

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

func (*CreateHouseholdRequest) Reset

func (x *CreateHouseholdRequest) Reset()

func (*CreateHouseholdRequest) String

func (x *CreateHouseholdRequest) String() string

type CreateHouseholdResponse

type CreateHouseholdResponse struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                               // Auto-generated unique identifier
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // Confirmed household name
	ErrorMessage *Error `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if creation failed
	// contains filtered or unexported fields
}

CreateHouseholdResponse is returned after successfully creating a household. Contains the new household's assigned ID and confirmation of the name.

func (*CreateHouseholdResponse) Descriptor deprecated

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

Deprecated: Use CreateHouseholdResponse.ProtoReflect.Descriptor instead.

func (*CreateHouseholdResponse) GetErrorMessage

func (x *CreateHouseholdResponse) GetErrorMessage() *Error

func (*CreateHouseholdResponse) GetId added in v1.0.45

func (x *CreateHouseholdResponse) GetId() string

func (*CreateHouseholdResponse) GetName

func (x *CreateHouseholdResponse) GetName() string

func (*CreateHouseholdResponse) ProtoMessage

func (*CreateHouseholdResponse) ProtoMessage()

func (*CreateHouseholdResponse) ProtoReflect

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

func (*CreateHouseholdResponse) Reset

func (x *CreateHouseholdResponse) Reset()

func (*CreateHouseholdResponse) String

func (x *CreateHouseholdResponse) String() string

type CreateMealRequest added in v0.1.2

type CreateMealRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                  // Name or description of the meal
	HouseholdId string `protobuf:"bytes,2,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // ID of the household this meal belongs to
	// contains filtered or unexported fields
}

CreateMealRequest creates a new meal entry for a household. Associates the meal with a specific household for organization.

func (*CreateMealRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use CreateMealRequest.ProtoReflect.Descriptor instead.

func (*CreateMealRequest) GetHouseholdId added in v0.1.2

func (x *CreateMealRequest) GetHouseholdId() string

func (*CreateMealRequest) GetName added in v0.1.2

func (x *CreateMealRequest) GetName() string

func (*CreateMealRequest) ProtoMessage added in v0.1.2

func (*CreateMealRequest) ProtoMessage()

func (*CreateMealRequest) ProtoReflect added in v0.1.2

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

func (*CreateMealRequest) Reset added in v0.1.2

func (x *CreateMealRequest) Reset()

func (*CreateMealRequest) String added in v0.1.2

func (x *CreateMealRequest) String() string

type CreateMemberRequest added in v0.1.2

type CreateMemberRequest struct {
	HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // ID of the household to join
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                // ID of the user becoming a member
	// contains filtered or unexported fields
}

CreateMemberRequest establishes a membership relationship. Links a user to a household, creating the member association.

func (*CreateMemberRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use CreateMemberRequest.ProtoReflect.Descriptor instead.

func (*CreateMemberRequest) GetHouseholdId added in v0.1.2

func (x *CreateMemberRequest) GetHouseholdId() string

func (*CreateMemberRequest) GetUserId added in v0.1.2

func (x *CreateMemberRequest) GetUserId() string

func (*CreateMemberRequest) ProtoMessage added in v0.1.2

func (*CreateMemberRequest) ProtoMessage()

func (*CreateMemberRequest) ProtoReflect added in v0.1.2

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

func (*CreateMemberRequest) Reset added in v0.1.2

func (x *CreateMemberRequest) Reset()

func (*CreateMemberRequest) String added in v0.1.2

func (x *CreateMemberRequest) String() string

type Error

type Error struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`      // Numeric error code (HTTP-style or custom)
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // Human-readable error description
	// contains filtered or unexported fields
}

Error represents standardized error information across all services. Provides both machine-readable codes and human-readable messages.

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetCode

func (x *Error) GetCode() int32

func (*Error) GetMessage

func (x *Error) GetMessage() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

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

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type EventResponse added in v0.1.2

type EventResponse struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                               // Unique event identifier
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // Descriptive name of the event
	EntityId     string `protobuf:"bytes,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`                   // ID of the associated entity
	EntityType   string `protobuf:"bytes,4,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"`             // Type of the associated entity
	StartDate    string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`                // ISO 8601 start date/time
	EndDate      string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`                      // ISO 8601 end date/time
	AssignedTo   string `protobuf:"bytes,7,opt,name=assigned_to,json=assignedTo,proto3" json:"assigned_to,omitempty"`             // User ID of the assigned person
	ErrorMessage *Error `protobuf:"bytes,8,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	CreatedAt    string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                // ISO 8601 timestamp of event creation
	UpdatedAt    string `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`               // ISO 8601 timestamp of last update
	// contains filtered or unexported fields
}

EventResponse represents a complete event entity. Contains all event details including scheduling and assignment information.

func (*EventResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use EventResponse.ProtoReflect.Descriptor instead.

func (*EventResponse) GetAssignedTo added in v0.1.2

func (x *EventResponse) GetAssignedTo() string

func (*EventResponse) GetCreatedAt added in v1.0.45

func (x *EventResponse) GetCreatedAt() string

func (*EventResponse) GetEndDate added in v0.1.2

func (x *EventResponse) GetEndDate() string

func (*EventResponse) GetEntityId added in v0.1.2

func (x *EventResponse) GetEntityId() string

func (*EventResponse) GetEntityType added in v0.1.2

func (x *EventResponse) GetEntityType() string

func (*EventResponse) GetErrorMessage added in v0.1.2

func (x *EventResponse) GetErrorMessage() *Error

func (*EventResponse) GetId added in v0.1.2

func (x *EventResponse) GetId() string

func (*EventResponse) GetName added in v0.1.2

func (x *EventResponse) GetName() string

func (*EventResponse) GetStartDate added in v0.1.2

func (x *EventResponse) GetStartDate() string

func (*EventResponse) GetUpdatedAt added in v1.0.45

func (x *EventResponse) GetUpdatedAt() string

func (*EventResponse) ProtoMessage added in v0.1.2

func (*EventResponse) ProtoMessage()

func (*EventResponse) ProtoReflect added in v0.1.2

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

func (*EventResponse) Reset added in v0.1.2

func (x *EventResponse) Reset()

func (*EventResponse) String added in v0.1.2

func (x *EventResponse) String() string

type EventServiceClient added in v0.1.2

type EventServiceClient interface {
	// CreateEvent schedules a new event in the system.
	// Events can be linked to any entity and assigned to specific users.
	CreateEvent(ctx context.Context, in *CreateEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
	// GetEvent retrieves a specific event by its unique ID.
	// Returns complete event details including entity associations and assignments.
	GetEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
	// GetEvents retrieves a filtered list of events.
	// Supports filtering by entity type and pagination through offset/limit.
	GetEvents(ctx context.Context, in *GetEventsRequest, opts ...grpc.CallOption) (*EventsResponse, error)
	// UpdateEvent modifies an existing event's properties.
	// Can update name, dates, assignments, or entity associations.
	UpdateEvent(ctx context.Context, in *UpdateEventRequest, opts ...grpc.CallOption) (*EventResponse, error)
	// DeleteEvent removes an event from the system.
	// Permanently deletes the event and all its associations.
	DeleteEvent(ctx context.Context, in *GetEventRequest, opts ...grpc.CallOption) (*emptypb.Empty, 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.

EventService manages scheduled events and activities within the HMLY system. Events can be associated with any entity type (households, meals, members, etc.) and support assignment to specific users with start/end date tracking.

func NewEventServiceClient added in v0.1.2

func NewEventServiceClient(cc grpc.ClientConnInterface) EventServiceClient

type EventServiceServer added in v0.1.2

type EventServiceServer interface {
	// CreateEvent schedules a new event in the system.
	// Events can be linked to any entity and assigned to specific users.
	CreateEvent(context.Context, *CreateEventRequest) (*EventResponse, error)
	// GetEvent retrieves a specific event by its unique ID.
	// Returns complete event details including entity associations and assignments.
	GetEvent(context.Context, *GetEventRequest) (*EventResponse, error)
	// GetEvents retrieves a filtered list of events.
	// Supports filtering by entity type and pagination through offset/limit.
	GetEvents(context.Context, *GetEventsRequest) (*EventsResponse, error)
	// UpdateEvent modifies an existing event's properties.
	// Can update name, dates, assignments, or entity associations.
	UpdateEvent(context.Context, *UpdateEventRequest) (*EventResponse, error)
	// DeleteEvent removes an event from the system.
	// Permanently deletes the event and all its associations.
	DeleteEvent(context.Context, *GetEventRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

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

EventService manages scheduled events and activities within the HMLY system. Events can be associated with any entity type (households, meals, members, etc.) and support assignment to specific users with start/end date tracking.

type EventsResponse added in v0.1.2

type EventsResponse struct {
	Events       []*EventResponse `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`                                       // Array of event entities
	ErrorMessage *Error           `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	// contains filtered or unexported fields
}

EventsResponse represents a list of events. Used for bulk event retrieval and filtered query operations.

func (*EventsResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use EventsResponse.ProtoReflect.Descriptor instead.

func (*EventsResponse) GetErrorMessage added in v0.1.2

func (x *EventsResponse) GetErrorMessage() *Error

func (*EventsResponse) GetEvents added in v0.1.2

func (x *EventsResponse) GetEvents() []*EventResponse

func (*EventsResponse) ProtoMessage added in v0.1.2

func (*EventsResponse) ProtoMessage()

func (*EventsResponse) ProtoReflect added in v0.1.2

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

func (*EventsResponse) Reset added in v0.1.2

func (x *EventsResponse) Reset()

func (*EventsResponse) String added in v0.1.2

func (x *EventsResponse) String() string

type GetEventRequest added in v0.1.2

type GetEventRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier of the event to retrieve
	// contains filtered or unexported fields
}

GetEventRequest retrieves a specific event by its unique ID. Used for single event lookup operations.

func (*GetEventRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetEventRequest.ProtoReflect.Descriptor instead.

func (*GetEventRequest) GetId added in v1.0.45

func (x *GetEventRequest) GetId() string

func (*GetEventRequest) ProtoMessage added in v0.1.2

func (*GetEventRequest) ProtoMessage()

func (*GetEventRequest) ProtoReflect added in v0.1.2

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

func (*GetEventRequest) Reset added in v0.1.2

func (x *GetEventRequest) Reset()

func (*GetEventRequest) String added in v0.1.2

func (x *GetEventRequest) String() string

type GetEventsRequest added in v0.1.2

type GetEventsRequest struct {
	EntityType *string `protobuf:"bytes,1,opt,name=entityType,proto3,oneof" json:"entityType,omitempty"` // Filter events by entity type (optional)
	Offset     *int32  `protobuf:"varint,2,opt,name=offset,proto3,oneof" json:"offset,omitempty"`        // Number of events to skip (for pagination)
	Limit      *int32  `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"`          // Maximum number of events to return
	// contains filtered or unexported fields
}

GetEventsRequest retrieves a filtered list of events. Supports filtering by entity type and pagination.

func (*GetEventsRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetEventsRequest.ProtoReflect.Descriptor instead.

func (*GetEventsRequest) GetEntityType added in v0.1.2

func (x *GetEventsRequest) GetEntityType() string

func (*GetEventsRequest) GetLimit added in v0.1.2

func (x *GetEventsRequest) GetLimit() int32

func (*GetEventsRequest) GetOffset added in v0.1.2

func (x *GetEventsRequest) GetOffset() int32

func (*GetEventsRequest) ProtoMessage added in v0.1.2

func (*GetEventsRequest) ProtoMessage()

func (*GetEventsRequest) ProtoReflect added in v0.1.2

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

func (*GetEventsRequest) Reset added in v0.1.2

func (x *GetEventsRequest) Reset()

func (*GetEventsRequest) String added in v0.1.2

func (x *GetEventsRequest) String() string

type GetHouseHoldsRequest

type GetHouseHoldsRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // Number of households to skip (for pagination)
	Limit  int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`   // Maximum number of households to return
	// contains filtered or unexported fields
}

GetHouseHoldsRequest is used for paginated household listing. Supports standard offset/limit pagination patterns.

func (*GetHouseHoldsRequest) Descriptor deprecated

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

Deprecated: Use GetHouseHoldsRequest.ProtoReflect.Descriptor instead.

func (*GetHouseHoldsRequest) GetLimit

func (x *GetHouseHoldsRequest) GetLimit() int32

func (*GetHouseHoldsRequest) GetOffset

func (x *GetHouseHoldsRequest) GetOffset() int32

func (*GetHouseHoldsRequest) ProtoMessage

func (*GetHouseHoldsRequest) ProtoMessage()

func (*GetHouseHoldsRequest) ProtoReflect

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

func (*GetHouseHoldsRequest) Reset

func (x *GetHouseHoldsRequest) Reset()

func (*GetHouseHoldsRequest) String

func (x *GetHouseHoldsRequest) String() string

type GetHouseholdRequest

type GetHouseholdRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier of the household to retrieve
	// contains filtered or unexported fields
}

GetHouseholdRequest is used to retrieve a specific household. Uses the household's unique identifier for lookup.

func (*GetHouseholdRequest) Descriptor deprecated

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

Deprecated: Use GetHouseholdRequest.ProtoReflect.Descriptor instead.

func (*GetHouseholdRequest) GetId added in v1.0.45

func (x *GetHouseholdRequest) GetId() string

func (*GetHouseholdRequest) ProtoMessage

func (*GetHouseholdRequest) ProtoMessage()

func (*GetHouseholdRequest) ProtoReflect

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

func (*GetHouseholdRequest) Reset

func (x *GetHouseholdRequest) Reset()

func (*GetHouseholdRequest) String

func (x *GetHouseholdRequest) String() string

type GetMealRequest added in v0.1.2

type GetMealRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier of the meal to retrieve
	// contains filtered or unexported fields
}

GetMealRequest retrieves a specific meal by its unique ID. Used for single meal lookup operations.

func (*GetMealRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetMealRequest.ProtoReflect.Descriptor instead.

func (*GetMealRequest) GetId added in v1.0.45

func (x *GetMealRequest) GetId() string

func (*GetMealRequest) ProtoMessage added in v0.1.2

func (*GetMealRequest) ProtoMessage()

func (*GetMealRequest) ProtoReflect added in v0.1.2

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

func (*GetMealRequest) Reset added in v0.1.2

func (x *GetMealRequest) Reset()

func (*GetMealRequest) String added in v0.1.2

func (x *GetMealRequest) String() string

type GetMealsRequest added in v0.1.2

type GetMealsRequest struct {
	HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // ID of the household to get meals for
	// contains filtered or unexported fields
}

GetMealsRequest retrieves all meals for a specific household. Returns the complete meal plan for the household.

func (*GetMealsRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetMealsRequest.ProtoReflect.Descriptor instead.

func (*GetMealsRequest) GetHouseholdId added in v0.1.2

func (x *GetMealsRequest) GetHouseholdId() string

func (*GetMealsRequest) ProtoMessage added in v0.1.2

func (*GetMealsRequest) ProtoMessage()

func (*GetMealsRequest) ProtoReflect added in v0.1.2

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

func (*GetMealsRequest) Reset added in v0.1.2

func (x *GetMealsRequest) Reset()

func (*GetMealsRequest) String added in v0.1.2

func (x *GetMealsRequest) String() string

type GetMemberRequest added in v0.1.2

type GetMemberRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Unique identifier of the member to retrieve
	// contains filtered or unexported fields
}

GetMemberRequest retrieves a specific member by their unique ID. Used for single member lookup operations.

func (*GetMemberRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetMemberRequest.ProtoReflect.Descriptor instead.

func (*GetMemberRequest) GetId added in v1.0.45

func (x *GetMemberRequest) GetId() string

func (*GetMemberRequest) ProtoMessage added in v0.1.2

func (*GetMemberRequest) ProtoMessage()

func (*GetMemberRequest) ProtoReflect added in v0.1.2

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

func (*GetMemberRequest) Reset added in v0.1.2

func (x *GetMemberRequest) Reset()

func (*GetMemberRequest) String added in v0.1.2

func (x *GetMemberRequest) String() string

type GetMembersRequest added in v0.1.2

type GetMembersRequest struct {
	HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // ID of the household to get members for
	// contains filtered or unexported fields
}

GetMembersRequest retrieves all members of a specific household. Returns the complete membership roster for the household.

func (*GetMembersRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use GetMembersRequest.ProtoReflect.Descriptor instead.

func (*GetMembersRequest) GetHouseholdId added in v0.1.2

func (x *GetMembersRequest) GetHouseholdId() string

func (*GetMembersRequest) ProtoMessage added in v0.1.2

func (*GetMembersRequest) ProtoMessage()

func (*GetMembersRequest) ProtoReflect added in v0.1.2

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

func (*GetMembersRequest) Reset added in v0.1.2

func (x *GetMembersRequest) Reset()

func (*GetMembersRequest) String added in v0.1.2

func (x *GetMembersRequest) String() string

type HouseholdResponse

type HouseholdResponse struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                               // Unique identifier
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // Display name of the household
	ErrorMessage *Error `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	CreatedAt    string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                // ISO 8601 timestamp of creation
	UpdatedAt    string `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`                // ISO 8601 timestamp of last update
	// contains filtered or unexported fields
}

HouseholdResponse represents a complete household entity. Used for single household retrieval and update operations.

func (*HouseholdResponse) Descriptor deprecated

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

Deprecated: Use HouseholdResponse.ProtoReflect.Descriptor instead.

func (*HouseholdResponse) GetCreatedAt added in v1.0.45

func (x *HouseholdResponse) GetCreatedAt() string

func (*HouseholdResponse) GetErrorMessage

func (x *HouseholdResponse) GetErrorMessage() *Error

func (*HouseholdResponse) GetId

func (x *HouseholdResponse) GetId() string

func (*HouseholdResponse) GetName

func (x *HouseholdResponse) GetName() string

func (*HouseholdResponse) GetUpdatedAt added in v1.0.45

func (x *HouseholdResponse) GetUpdatedAt() string

func (*HouseholdResponse) ProtoMessage

func (*HouseholdResponse) ProtoMessage()

func (*HouseholdResponse) ProtoReflect

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

func (*HouseholdResponse) Reset

func (x *HouseholdResponse) Reset()

func (*HouseholdResponse) String

func (x *HouseholdResponse) String() string

type HouseholdServiceClient

type HouseholdServiceClient interface {
	// CreateHousehold creates a new household with the specified name.
	// Returns the newly created household with its assigned ID.
	CreateHousehold(ctx context.Context, in *CreateHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
	// GetHousehold retrieves a specific household by its unique ID.
	// Returns the household details if found.
	GetHousehold(ctx context.Context, in *GetHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
	// GetHouseholds retrieves a paginated list of households.
	// Supports pagination through offset and limit parameters.
	GetHouseholds(ctx context.Context, in *GetHouseHoldsRequest, opts ...grpc.CallOption) (*HouseholdsResponse, error)
	// UpdateHousehold modifies an existing household's properties.
	// Updates the household identified by the provided ID.
	UpdateHousehold(ctx context.Context, in *UpdateHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
	// DeleteHousehold removes a household from the system.
	// This operation may cascade to related entities.
	DeleteHousehold(ctx context.Context, in *GetHouseholdRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

HouseholdServiceClient is the client API for HouseholdService 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.

HouseholdService manages household entities within the HMLY system. A household represents a family unit or group of people living together.

type HouseholdServiceServer

type HouseholdServiceServer interface {
	// CreateHousehold creates a new household with the specified name.
	// Returns the newly created household with its assigned ID.
	CreateHousehold(context.Context, *CreateHouseholdRequest) (*HouseholdResponse, error)
	// GetHousehold retrieves a specific household by its unique ID.
	// Returns the household details if found.
	GetHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
	// GetHouseholds retrieves a paginated list of households.
	// Supports pagination through offset and limit parameters.
	GetHouseholds(context.Context, *GetHouseHoldsRequest) (*HouseholdsResponse, error)
	// UpdateHousehold modifies an existing household's properties.
	// Updates the household identified by the provided ID.
	UpdateHousehold(context.Context, *UpdateHouseholdRequest) (*HouseholdResponse, error)
	// DeleteHousehold removes a household from the system.
	// This operation may cascade to related entities.
	DeleteHousehold(context.Context, *GetHouseholdRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

HouseholdServiceServer is the server API for HouseholdService service. All implementations must embed UnimplementedHouseholdServiceServer for forward compatibility.

HouseholdService manages household entities within the HMLY system. A household represents a family unit or group of people living together.

type HouseholdsResponse

type HouseholdsResponse struct {
	Households   []*HouseholdResponse `protobuf:"bytes,1,rep,name=households,proto3" json:"households,omitempty"`                               // Array of household entities
	ErrorMessage *Error               `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	// contains filtered or unexported fields
}

HouseholdsResponse represents a paginated list of households. Used for bulk household retrieval operations.

func (*HouseholdsResponse) Descriptor deprecated

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

Deprecated: Use HouseholdsResponse.ProtoReflect.Descriptor instead.

func (*HouseholdsResponse) GetErrorMessage

func (x *HouseholdsResponse) GetErrorMessage() *Error

func (*HouseholdsResponse) GetHouseholds

func (x *HouseholdsResponse) GetHouseholds() []*HouseholdResponse

func (*HouseholdsResponse) ProtoMessage

func (*HouseholdsResponse) ProtoMessage()

func (*HouseholdsResponse) ProtoReflect

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

func (*HouseholdsResponse) Reset

func (x *HouseholdsResponse) Reset()

func (*HouseholdsResponse) String

func (x *HouseholdsResponse) String() string

type MealResponse added in v0.1.2

type MealResponse struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                               // Unique meal identifier
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                           // Name or description of the meal
	HouseholdId  string `protobuf:"bytes,3,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"`          // ID of the associated household
	ErrorMessage *Error `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	CreatedAt    string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                // ISO 8601 timestamp of meal creation
	UpdatedAt    string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`                // ISO 8601 timestamp of last update
	// contains filtered or unexported fields
}

MealResponse represents a complete meal entity. Contains all meal details and household association information.

func (*MealResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use MealResponse.ProtoReflect.Descriptor instead.

func (*MealResponse) GetCreatedAt added in v1.0.45

func (x *MealResponse) GetCreatedAt() string

func (*MealResponse) GetErrorMessage added in v0.1.2

func (x *MealResponse) GetErrorMessage() *Error

func (*MealResponse) GetHouseholdId added in v0.1.2

func (x *MealResponse) GetHouseholdId() string

func (*MealResponse) GetId added in v0.1.2

func (x *MealResponse) GetId() string

func (*MealResponse) GetName added in v0.1.2

func (x *MealResponse) GetName() string

func (*MealResponse) GetUpdatedAt added in v1.0.45

func (x *MealResponse) GetUpdatedAt() string

func (*MealResponse) ProtoMessage added in v0.1.2

func (*MealResponse) ProtoMessage()

func (*MealResponse) ProtoReflect added in v0.1.2

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

func (*MealResponse) Reset added in v0.1.2

func (x *MealResponse) Reset()

func (*MealResponse) String added in v0.1.2

func (x *MealResponse) String() string

type MealServiceClient added in v0.1.2

type MealServiceClient interface {
	// CreateMeal adds a new meal to a household's meal plan.
	// Associates the meal with a specific household for organization.
	CreateMeal(ctx context.Context, in *CreateMealRequest, opts ...grpc.CallOption) (*MealResponse, error)
	// GetMeal retrieves a specific meal by its unique ID.
	// Returns detailed information about the meal including household association.
	GetMeal(ctx context.Context, in *GetMealRequest, opts ...grpc.CallOption) (*MealResponse, error)
	// GetMeals retrieves all meals for a specific household.
	// Returns the complete meal plan for the household.
	GetMeals(ctx context.Context, in *GetMealsRequest, opts ...grpc.CallOption) (*MealsResponse, error)
	// UpdateMeal modifies an existing meal's details.
	// Can change meal name, household association, or other properties.
	UpdateMeal(ctx context.Context, in *UpdateMealRequest, opts ...grpc.CallOption) (*MealResponse, error)
	// DeleteMeal removes a meal from the household's meal plan.
	// Permanently deletes the meal record from the system.
	DeleteMeal(ctx context.Context, in *GetMealRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MealServiceClient is the client API for MealService 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.

MealService manages meal planning and tracking within households. Meals represent food-related events, recipes, or planned dining activities.

func NewMealServiceClient added in v0.1.2

func NewMealServiceClient(cc grpc.ClientConnInterface) MealServiceClient

type MealServiceServer added in v0.1.2

type MealServiceServer interface {
	// CreateMeal adds a new meal to a household's meal plan.
	// Associates the meal with a specific household for organization.
	CreateMeal(context.Context, *CreateMealRequest) (*MealResponse, error)
	// GetMeal retrieves a specific meal by its unique ID.
	// Returns detailed information about the meal including household association.
	GetMeal(context.Context, *GetMealRequest) (*MealResponse, error)
	// GetMeals retrieves all meals for a specific household.
	// Returns the complete meal plan for the household.
	GetMeals(context.Context, *GetMealsRequest) (*MealsResponse, error)
	// UpdateMeal modifies an existing meal's details.
	// Can change meal name, household association, or other properties.
	UpdateMeal(context.Context, *UpdateMealRequest) (*MealResponse, error)
	// DeleteMeal removes a meal from the household's meal plan.
	// Permanently deletes the meal record from the system.
	DeleteMeal(context.Context, *GetMealRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

MealServiceServer is the server API for MealService service. All implementations must embed UnimplementedMealServiceServer for forward compatibility.

MealService manages meal planning and tracking within households. Meals represent food-related events, recipes, or planned dining activities.

type MealsResponse added in v0.1.2

type MealsResponse struct {
	Meals        []*MealResponse `protobuf:"bytes,1,rep,name=meals,proto3" json:"meals,omitempty"`                                         // Array of meal entities
	ErrorMessage *Error          `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	// contains filtered or unexported fields
}

MealsResponse represents a list of meals for a household. Used for bulk meal retrieval operations.

func (*MealsResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use MealsResponse.ProtoReflect.Descriptor instead.

func (*MealsResponse) GetErrorMessage added in v0.1.2

func (x *MealsResponse) GetErrorMessage() *Error

func (*MealsResponse) GetMeals added in v0.1.2

func (x *MealsResponse) GetMeals() []*MealResponse

func (*MealsResponse) ProtoMessage added in v0.1.2

func (*MealsResponse) ProtoMessage()

func (*MealsResponse) ProtoReflect added in v0.1.2

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

func (*MealsResponse) Reset added in v0.1.2

func (x *MealsResponse) Reset()

func (*MealsResponse) String added in v0.1.2

func (x *MealsResponse) String() string

type MemberResponse added in v0.1.2

type MemberResponse struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                               // Unique member identifier
	HouseholdId  string `protobuf:"bytes,2,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"`          // ID of the associated household
	UserId       string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                         // ID of the associated user
	ErrorMessage *Error `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	CreatedAt    string `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`                // ISO 8601 timestamp of membership creation
	UpdatedAt    string `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`                // ISO 8601 timestamp of last update
	// contains filtered or unexported fields
}

MemberResponse represents a complete member entity. Contains all relationship information between user and household.

func (*MemberResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use MemberResponse.ProtoReflect.Descriptor instead.

func (*MemberResponse) GetCreatedAt added in v1.0.45

func (x *MemberResponse) GetCreatedAt() string

func (*MemberResponse) GetErrorMessage added in v0.1.2

func (x *MemberResponse) GetErrorMessage() *Error

func (*MemberResponse) GetHouseholdId added in v0.1.2

func (x *MemberResponse) GetHouseholdId() string

func (*MemberResponse) GetId added in v0.1.2

func (x *MemberResponse) GetId() string

func (*MemberResponse) GetUpdatedAt added in v1.0.45

func (x *MemberResponse) GetUpdatedAt() string

func (*MemberResponse) GetUserId added in v0.1.2

func (x *MemberResponse) GetUserId() string

func (*MemberResponse) ProtoMessage added in v0.1.2

func (*MemberResponse) ProtoMessage()

func (*MemberResponse) ProtoReflect added in v0.1.2

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

func (*MemberResponse) Reset added in v0.1.2

func (x *MemberResponse) Reset()

func (*MemberResponse) String added in v0.1.2

func (x *MemberResponse) String() string

type MemberServiceClient added in v0.1.2

type MemberServiceClient interface {
	// CreateMember adds a user to a household as a member.
	// Creates the membership relationship between user and household.
	CreateMember(ctx context.Context, in *CreateMemberRequest, opts ...grpc.CallOption) (*MemberResponse, error)
	// GetMember retrieves a specific member by their unique ID.
	// Returns the member details including household and user associations.
	GetMember(ctx context.Context, in *GetMemberRequest, opts ...grpc.CallOption) (*MemberResponse, error)
	// GetMembers retrieves all members belonging to a specific household.
	// Returns a list of all users who are members of the household.
	GetMembers(ctx context.Context, in *GetMembersRequest, opts ...grpc.CallOption) (*MembersResponse, error)
	// UpdateMember modifies an existing member's association.
	// Can change the household or user ID for the membership.
	UpdateMember(ctx context.Context, in *UpdateMemberRequest, opts ...grpc.CallOption) (*MemberResponse, error)
	// DeleteMember removes a user's membership from a household.
	// Breaks the association between the user and household.
	DeleteMember(ctx context.Context, in *GetMemberRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

MemberServiceClient is the client API for MemberService 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.

MemberService manages membership relationships between users and households. Members represent the association of users with specific households.

func NewMemberServiceClient added in v0.1.2

func NewMemberServiceClient(cc grpc.ClientConnInterface) MemberServiceClient

type MemberServiceServer added in v0.1.2

type MemberServiceServer interface {
	// CreateMember adds a user to a household as a member.
	// Creates the membership relationship between user and household.
	CreateMember(context.Context, *CreateMemberRequest) (*MemberResponse, error)
	// GetMember retrieves a specific member by their unique ID.
	// Returns the member details including household and user associations.
	GetMember(context.Context, *GetMemberRequest) (*MemberResponse, error)
	// GetMembers retrieves all members belonging to a specific household.
	// Returns a list of all users who are members of the household.
	GetMembers(context.Context, *GetMembersRequest) (*MembersResponse, error)
	// UpdateMember modifies an existing member's association.
	// Can change the household or user ID for the membership.
	UpdateMember(context.Context, *UpdateMemberRequest) (*MemberResponse, error)
	// DeleteMember removes a user's membership from a household.
	// Breaks the association between the user and household.
	DeleteMember(context.Context, *GetMemberRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

MemberServiceServer is the server API for MemberService service. All implementations must embed UnimplementedMemberServiceServer for forward compatibility.

MemberService manages membership relationships between users and households. Members represent the association of users with specific households.

type MembersResponse added in v0.1.2

type MembersResponse struct {
	Members      []*MemberResponse `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`                                     // Array of member entities
	ErrorMessage *Error            `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if operation failed
	// contains filtered or unexported fields
}

MembersResponse represents a list of household members. Used for bulk member retrieval operations.

func (*MembersResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use MembersResponse.ProtoReflect.Descriptor instead.

func (*MembersResponse) GetErrorMessage added in v0.1.2

func (x *MembersResponse) GetErrorMessage() *Error

func (*MembersResponse) GetMembers added in v0.1.2

func (x *MembersResponse) GetMembers() []*MemberResponse

func (*MembersResponse) ProtoMessage added in v0.1.2

func (*MembersResponse) ProtoMessage()

func (*MembersResponse) ProtoReflect added in v0.1.2

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

func (*MembersResponse) Reset added in v0.1.2

func (x *MembersResponse) Reset()

func (*MembersResponse) String added in v0.1.2

func (x *MembersResponse) String() string

type UnimplementedEventServiceServer added in v0.1.2

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 added in v0.1.2

func (UnimplementedEventServiceServer) DeleteEvent added in v0.1.2

func (UnimplementedEventServiceServer) GetEvent added in v0.1.2

func (UnimplementedEventServiceServer) GetEvents added in v0.1.2

func (UnimplementedEventServiceServer) UpdateEvent added in v0.1.2

type UnimplementedHouseholdServiceServer

type UnimplementedHouseholdServiceServer struct{}

UnimplementedHouseholdServiceServer 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 (UnimplementedHouseholdServiceServer) CreateHousehold

func (UnimplementedHouseholdServiceServer) DeleteHousehold

func (UnimplementedHouseholdServiceServer) GetHousehold

func (UnimplementedHouseholdServiceServer) GetHouseholds

func (UnimplementedHouseholdServiceServer) UpdateHousehold

type UnimplementedMealServiceServer added in v0.1.2

type UnimplementedMealServiceServer struct{}

UnimplementedMealServiceServer 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 (UnimplementedMealServiceServer) CreateMeal added in v0.1.2

func (UnimplementedMealServiceServer) DeleteMeal added in v0.1.2

func (UnimplementedMealServiceServer) GetMeal added in v0.1.2

func (UnimplementedMealServiceServer) GetMeals added in v0.1.2

func (UnimplementedMealServiceServer) UpdateMeal added in v0.1.2

type UnimplementedMemberServiceServer added in v0.1.2

type UnimplementedMemberServiceServer struct{}

UnimplementedMemberServiceServer 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 (UnimplementedMemberServiceServer) CreateMember added in v0.1.2

func (UnimplementedMemberServiceServer) DeleteMember added in v0.1.2

func (UnimplementedMemberServiceServer) GetMember added in v0.1.2

func (UnimplementedMemberServiceServer) GetMembers added in v0.1.2

func (UnimplementedMemberServiceServer) UpdateMember added in v0.1.2

type UnsafeEventServiceServer added in v0.1.2

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 UnsafeHouseholdServiceServer

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

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

type UnsafeMealServiceServer added in v0.1.2

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

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

type UnsafeMemberServiceServer added in v0.1.2

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

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

type UpdateEventRequest added in v0.1.2

type UpdateEventRequest struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                   // Unique identifier of the event to update
	Name       string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                               // New descriptive name for the event
	EntityId   string `protobuf:"bytes,3,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`       // New entity ID (if changing associations)
	EntityType string `protobuf:"bytes,4,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` // New entity type (if changing associations)
	StartDate  string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`    // New ISO 8601 start date/time
	EndDate    string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`          // New ISO 8601 end date/time
	AssignedTo string `protobuf:"bytes,7,opt,name=assigned_to,json=assignedTo,proto3" json:"assigned_to,omitempty"` // New user ID for assignment
	// contains filtered or unexported fields
}

UpdateEventRequest modifies an existing event's properties. Can update any aspect of the event including dates and assignments.

func (*UpdateEventRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use UpdateEventRequest.ProtoReflect.Descriptor instead.

func (*UpdateEventRequest) GetAssignedTo added in v0.1.2

func (x *UpdateEventRequest) GetAssignedTo() string

func (*UpdateEventRequest) GetEndDate added in v0.1.2

func (x *UpdateEventRequest) GetEndDate() string

func (*UpdateEventRequest) GetEntityId added in v0.1.2

func (x *UpdateEventRequest) GetEntityId() string

func (*UpdateEventRequest) GetEntityType added in v0.1.2

func (x *UpdateEventRequest) GetEntityType() string

func (*UpdateEventRequest) GetId added in v1.0.45

func (x *UpdateEventRequest) GetId() string

func (*UpdateEventRequest) GetName added in v0.1.2

func (x *UpdateEventRequest) GetName() string

func (*UpdateEventRequest) GetStartDate added in v0.1.2

func (x *UpdateEventRequest) GetStartDate() string

func (*UpdateEventRequest) ProtoMessage added in v0.1.2

func (*UpdateEventRequest) ProtoMessage()

func (*UpdateEventRequest) ProtoReflect added in v0.1.2

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

func (*UpdateEventRequest) Reset added in v0.1.2

func (x *UpdateEventRequest) Reset()

func (*UpdateEventRequest) String added in v0.1.2

func (x *UpdateEventRequest) String() string

type UpdateHouseholdRequest

type UpdateHouseholdRequest struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`     // Unique identifier of the household to update
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // New display name for the household
	// contains filtered or unexported fields
}

UpdateHouseholdRequest is used to modify an existing household. Requires the household ID and new property values.

func (*UpdateHouseholdRequest) Descriptor deprecated

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

Deprecated: Use UpdateHouseholdRequest.ProtoReflect.Descriptor instead.

func (*UpdateHouseholdRequest) GetId added in v1.0.45

func (x *UpdateHouseholdRequest) GetId() string

func (*UpdateHouseholdRequest) GetName

func (x *UpdateHouseholdRequest) GetName() string

func (*UpdateHouseholdRequest) ProtoMessage

func (*UpdateHouseholdRequest) ProtoMessage()

func (*UpdateHouseholdRequest) ProtoReflect

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

func (*UpdateHouseholdRequest) Reset

func (x *UpdateHouseholdRequest) Reset()

func (*UpdateHouseholdRequest) String

func (x *UpdateHouseholdRequest) String() string

type UpdateMealRequest added in v0.1.2

type UpdateMealRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                      // Unique identifier of the meal to update
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                  // New name or description for the meal
	HouseholdId string `protobuf:"bytes,4,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // New household ID (if moving between households)
	// contains filtered or unexported fields
}

UpdateMealRequest modifies an existing meal's properties. Can change meal details or household association.

func (*UpdateMealRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use UpdateMealRequest.ProtoReflect.Descriptor instead.

func (*UpdateMealRequest) GetHouseholdId added in v0.1.2

func (x *UpdateMealRequest) GetHouseholdId() string

func (*UpdateMealRequest) GetId added in v1.0.45

func (x *UpdateMealRequest) GetId() string

func (*UpdateMealRequest) GetName added in v0.1.2

func (x *UpdateMealRequest) GetName() string

func (*UpdateMealRequest) ProtoMessage added in v0.1.2

func (*UpdateMealRequest) ProtoMessage()

func (*UpdateMealRequest) ProtoReflect added in v0.1.2

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

func (*UpdateMealRequest) Reset added in v0.1.2

func (x *UpdateMealRequest) Reset()

func (*UpdateMealRequest) String added in v0.1.2

func (x *UpdateMealRequest) String() string

type UpdateMemberRequest added in v0.1.2

type UpdateMemberRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                      // Unique identifier of the member to update
	HouseholdId string `protobuf:"bytes,2,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"` // New household ID (if changing households)
	UserId      string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                // New user ID (if changing user association)
	// contains filtered or unexported fields
}

UpdateMemberRequest modifies an existing member's associations. Can change household or user relationships for the member.

func (*UpdateMemberRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use UpdateMemberRequest.ProtoReflect.Descriptor instead.

func (*UpdateMemberRequest) GetHouseholdId added in v0.1.2

func (x *UpdateMemberRequest) GetHouseholdId() string

func (*UpdateMemberRequest) GetId added in v1.0.45

func (x *UpdateMemberRequest) GetId() string

func (*UpdateMemberRequest) GetUserId added in v0.1.2

func (x *UpdateMemberRequest) GetUserId() string

func (*UpdateMemberRequest) ProtoMessage added in v0.1.2

func (*UpdateMemberRequest) ProtoMessage()

func (*UpdateMemberRequest) ProtoReflect added in v0.1.2

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

func (*UpdateMemberRequest) Reset added in v0.1.2

func (x *UpdateMemberRequest) Reset()

func (*UpdateMemberRequest) String added in v0.1.2

func (x *UpdateMemberRequest) String() string

type VerifyTokenRequest added in v0.1.2

type VerifyTokenRequest struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // Authentication token to be verified
	// contains filtered or unexported fields
}

VerifyTokenRequest validates an authentication token. Used to confirm token validity and extract user information.

func (*VerifyTokenRequest) Descriptor deprecated added in v0.1.2

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

Deprecated: Use VerifyTokenRequest.ProtoReflect.Descriptor instead.

func (*VerifyTokenRequest) GetToken added in v0.1.2

func (x *VerifyTokenRequest) GetToken() string

func (*VerifyTokenRequest) ProtoMessage added in v0.1.2

func (*VerifyTokenRequest) ProtoMessage()

func (*VerifyTokenRequest) ProtoReflect added in v0.1.2

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

func (*VerifyTokenRequest) Reset added in v0.1.2

func (x *VerifyTokenRequest) Reset()

func (*VerifyTokenRequest) String added in v0.1.2

func (x *VerifyTokenRequest) String() string

type VerifyTokenResponse added in v0.1.2

type VerifyTokenResponse struct {
	Valid        bool   `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`                                        // Whether the token is valid
	UserId       string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`                         // User ID associated with the token (if valid)
	ErrorMessage *Error `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"` // Error details if verification failed
	// contains filtered or unexported fields
}

VerifyTokenResponse returns the result of token verification. Includes validity status and associated user information.

func (*VerifyTokenResponse) Descriptor deprecated added in v0.1.2

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

Deprecated: Use VerifyTokenResponse.ProtoReflect.Descriptor instead.

func (*VerifyTokenResponse) GetErrorMessage added in v0.1.2

func (x *VerifyTokenResponse) GetErrorMessage() *Error

func (*VerifyTokenResponse) GetUserId added in v0.1.2

func (x *VerifyTokenResponse) GetUserId() string

func (*VerifyTokenResponse) GetValid added in v0.1.2

func (x *VerifyTokenResponse) GetValid() bool

func (*VerifyTokenResponse) ProtoMessage added in v0.1.2

func (*VerifyTokenResponse) ProtoMessage()

func (*VerifyTokenResponse) ProtoReflect added in v0.1.2

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

func (*VerifyTokenResponse) Reset added in v0.1.2

func (x *VerifyTokenResponse) Reset()

func (*VerifyTokenResponse) String added in v0.1.2

func (x *VerifyTokenResponse) String() string

Jump to

Keyboard shortcuts

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