Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterActivityServiceServer(s grpc.ServiceRegistrar, srv ActivityServiceServer)
- type ActivityBaseResponse
- func (*ActivityBaseResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityBaseResponse) GetData() *anypb.Any
- func (x *ActivityBaseResponse) GetMessage() string
- func (x *ActivityBaseResponse) GetPaging() *ActivityPaging
- func (*ActivityBaseResponse) ProtoMessage()
- func (x *ActivityBaseResponse) ProtoReflect() protoreflect.Message
- func (x *ActivityBaseResponse) Reset()
- func (x *ActivityBaseResponse) String() string
- type ActivityPaging
- func (*ActivityPaging) Descriptor() ([]byte, []int)deprecated
- func (x *ActivityPaging) GetCount() int32
- func (x *ActivityPaging) GetCurrentPage() int32
- func (x *ActivityPaging) GetTotalPage() int32
- func (*ActivityPaging) ProtoMessage()
- func (x *ActivityPaging) ProtoReflect() protoreflect.Message
- func (x *ActivityPaging) Reset()
- func (x *ActivityPaging) String() string
- type ActivityServiceClient
- type ActivityServiceServer
- type CreateActivityRequest
- func (*CreateActivityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateActivityRequest) GetTitle() string
- func (*CreateActivityRequest) ProtoMessage()
- func (x *CreateActivityRequest) ProtoReflect() protoreflect.Message
- func (x *CreateActivityRequest) Reset()
- func (x *CreateActivityRequest) String() string
- type DeleteActivityByIDRequest
- func (*DeleteActivityByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteActivityByIDRequest) GetId() string
- func (*DeleteActivityByIDRequest) ProtoMessage()
- func (x *DeleteActivityByIDRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteActivityByIDRequest) Reset()
- func (x *DeleteActivityByIDRequest) String() string
- type GetActivityByIDRequest
- func (*GetActivityByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetActivityByIDRequest) GetId() string
- func (*GetActivityByIDRequest) ProtoMessage()
- func (x *GetActivityByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetActivityByIDRequest) Reset()
- func (x *GetActivityByIDRequest) String() string
- type GetActivityByIDResponse
- func (*GetActivityByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetActivityByIDResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetActivityByIDResponse) GetDeletedAt() *timestamppb.Timestamp
- func (x *GetActivityByIDResponse) GetId() string
- func (x *GetActivityByIDResponse) GetTitle() string
- func (x *GetActivityByIDResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetActivityByIDResponse) ProtoMessage()
- func (x *GetActivityByIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetActivityByIDResponse) Reset()
- func (x *GetActivityByIDResponse) String() string
- type GetAllActivityRequest
- func (*GetAllActivityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllActivityRequest) GetLimit() int32
- func (x *GetAllActivityRequest) GetPage() int32
- func (x *GetAllActivityRequest) GetSearch() string
- func (*GetAllActivityRequest) ProtoMessage()
- func (x *GetAllActivityRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllActivityRequest) Reset()
- func (x *GetAllActivityRequest) String() string
- type GetAllActivityResponse
- func (*GetAllActivityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllActivityResponse) GetData() []*GetActivityByIDResponse
- func (x *GetAllActivityResponse) GetMessage() string
- func (x *GetAllActivityResponse) GetPaging() *ActivityPaging
- func (*GetAllActivityResponse) ProtoMessage()
- func (x *GetAllActivityResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllActivityResponse) Reset()
- func (x *GetAllActivityResponse) String() string
- type UnimplementedActivityServiceServer
- func (UnimplementedActivityServiceServer) Create(context.Context, *CreateActivityRequest) (*ActivityBaseResponse, error)
- func (UnimplementedActivityServiceServer) Delete(context.Context, *DeleteActivityByIDRequest) (*ActivityBaseResponse, error)
- func (UnimplementedActivityServiceServer) Get(context.Context, *GetActivityByIDRequest) (*ActivityBaseResponse, error)
- func (UnimplementedActivityServiceServer) GetAll(context.Context, *GetAllActivityRequest) (*GetAllActivityResponse, error)
- func (UnimplementedActivityServiceServer) Update(context.Context, *UpdateActivityByIDRequest) (*ActivityBaseResponse, error)
- type UnsafeActivityServiceServer
- type UpdateActivityByIDRequest
- func (*UpdateActivityByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateActivityByIDRequest) GetId() string
- func (x *UpdateActivityByIDRequest) GetTitle() string
- func (*UpdateActivityByIDRequest) ProtoMessage()
- func (x *UpdateActivityByIDRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateActivityByIDRequest) Reset()
- func (x *UpdateActivityByIDRequest) String() string
Constants ¶
const ( ActivityService_Create_FullMethodName = "/proto.ActivityService/Create" ActivityService_Get_FullMethodName = "/proto.ActivityService/Get" ActivityService_GetAll_FullMethodName = "/proto.ActivityService/GetAll" ActivityService_Update_FullMethodName = "/proto.ActivityService/Update" ActivityService_Delete_FullMethodName = "/proto.ActivityService/Delete" )
Variables ¶
var ActivityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.ActivityService", HandlerType: (*ActivityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _ActivityService_Create_Handler, }, { MethodName: "Get", Handler: _ActivityService_Get_Handler, }, { MethodName: "GetAll", Handler: _ActivityService_GetAll_Handler, }, { MethodName: "Update", Handler: _ActivityService_Update_Handler, }, { MethodName: "Delete", Handler: _ActivityService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "activity/activity_service.proto", }
ActivityService_ServiceDesc is the grpc.ServiceDesc for ActivityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_activity_activity_service_proto protoreflect.FileDescriptor
var File_activity_payload_messages_proto protoreflect.FileDescriptor
Functions ¶
func RegisterActivityServiceServer ¶
func RegisterActivityServiceServer(s grpc.ServiceRegistrar, srv ActivityServiceServer)
Types ¶
type ActivityBaseResponse ¶
type ActivityBaseResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"` Paging *ActivityPaging `protobuf:"bytes,3,opt,name=paging,proto3,oneof" json:"paging,omitempty"` // contains filtered or unexported fields }
func (*ActivityBaseResponse) Descriptor
deprecated
func (*ActivityBaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use ActivityBaseResponse.ProtoReflect.Descriptor instead.
func (*ActivityBaseResponse) GetData ¶
func (x *ActivityBaseResponse) GetData() *anypb.Any
func (*ActivityBaseResponse) GetMessage ¶
func (x *ActivityBaseResponse) GetMessage() string
func (*ActivityBaseResponse) GetPaging ¶
func (x *ActivityBaseResponse) GetPaging() *ActivityPaging
func (*ActivityBaseResponse) ProtoMessage ¶
func (*ActivityBaseResponse) ProtoMessage()
func (*ActivityBaseResponse) ProtoReflect ¶
func (x *ActivityBaseResponse) ProtoReflect() protoreflect.Message
func (*ActivityBaseResponse) Reset ¶
func (x *ActivityBaseResponse) Reset()
func (*ActivityBaseResponse) String ¶
func (x *ActivityBaseResponse) String() string
type ActivityPaging ¶
type ActivityPaging struct { CurrentPage int32 `protobuf:"varint,1,opt,name=current_page,proto3" json:"current_page,omitempty"` TotalPage int32 `protobuf:"varint,2,opt,name=total_page,proto3" json:"total_page,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ActivityPaging) Descriptor
deprecated
func (*ActivityPaging) Descriptor() ([]byte, []int)
Deprecated: Use ActivityPaging.ProtoReflect.Descriptor instead.
func (*ActivityPaging) GetCount ¶
func (x *ActivityPaging) GetCount() int32
func (*ActivityPaging) GetCurrentPage ¶
func (x *ActivityPaging) GetCurrentPage() int32
func (*ActivityPaging) GetTotalPage ¶
func (x *ActivityPaging) GetTotalPage() int32
func (*ActivityPaging) ProtoMessage ¶
func (*ActivityPaging) ProtoMessage()
func (*ActivityPaging) ProtoReflect ¶
func (x *ActivityPaging) ProtoReflect() protoreflect.Message
func (*ActivityPaging) Reset ¶
func (x *ActivityPaging) Reset()
func (*ActivityPaging) String ¶
func (x *ActivityPaging) String() string
type ActivityServiceClient ¶
type ActivityServiceClient interface { Create(ctx context.Context, in *CreateActivityRequest, opts ...grpc.CallOption) (*ActivityBaseResponse, error) Get(ctx context.Context, in *GetActivityByIDRequest, opts ...grpc.CallOption) (*ActivityBaseResponse, error) GetAll(ctx context.Context, in *GetAllActivityRequest, opts ...grpc.CallOption) (*GetAllActivityResponse, error) Update(ctx context.Context, in *UpdateActivityByIDRequest, opts ...grpc.CallOption) (*ActivityBaseResponse, error) Delete(ctx context.Context, in *DeleteActivityByIDRequest, opts ...grpc.CallOption) (*ActivityBaseResponse, error) }
ActivityServiceClient is the client API for ActivityService 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.
func NewActivityServiceClient ¶
func NewActivityServiceClient(cc grpc.ClientConnInterface) ActivityServiceClient
type ActivityServiceServer ¶
type ActivityServiceServer interface { Create(context.Context, *CreateActivityRequest) (*ActivityBaseResponse, error) Get(context.Context, *GetActivityByIDRequest) (*ActivityBaseResponse, error) GetAll(context.Context, *GetAllActivityRequest) (*GetAllActivityResponse, error) Update(context.Context, *UpdateActivityByIDRequest) (*ActivityBaseResponse, error) Delete(context.Context, *DeleteActivityByIDRequest) (*ActivityBaseResponse, error) // contains filtered or unexported methods }
ActivityServiceServer is the server API for ActivityService service. All implementations must embed UnimplementedActivityServiceServer for forward compatibility
type CreateActivityRequest ¶
type CreateActivityRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*CreateActivityRequest) Descriptor
deprecated
func (*CreateActivityRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateActivityRequest.ProtoReflect.Descriptor instead.
func (*CreateActivityRequest) GetTitle ¶
func (x *CreateActivityRequest) GetTitle() string
func (*CreateActivityRequest) ProtoMessage ¶
func (*CreateActivityRequest) ProtoMessage()
func (*CreateActivityRequest) ProtoReflect ¶
func (x *CreateActivityRequest) ProtoReflect() protoreflect.Message
func (*CreateActivityRequest) Reset ¶
func (x *CreateActivityRequest) Reset()
func (*CreateActivityRequest) String ¶
func (x *CreateActivityRequest) String() string
type DeleteActivityByIDRequest ¶
type DeleteActivityByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteActivityByIDRequest) Descriptor
deprecated
func (*DeleteActivityByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteActivityByIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteActivityByIDRequest) GetId ¶
func (x *DeleteActivityByIDRequest) GetId() string
func (*DeleteActivityByIDRequest) ProtoMessage ¶
func (*DeleteActivityByIDRequest) ProtoMessage()
func (*DeleteActivityByIDRequest) ProtoReflect ¶
func (x *DeleteActivityByIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteActivityByIDRequest) Reset ¶
func (x *DeleteActivityByIDRequest) Reset()
func (*DeleteActivityByIDRequest) String ¶
func (x *DeleteActivityByIDRequest) String() string
type GetActivityByIDRequest ¶
type GetActivityByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetActivityByIDRequest) Descriptor
deprecated
func (*GetActivityByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetActivityByIDRequest.ProtoReflect.Descriptor instead.
func (*GetActivityByIDRequest) GetId ¶
func (x *GetActivityByIDRequest) GetId() string
func (*GetActivityByIDRequest) ProtoMessage ¶
func (*GetActivityByIDRequest) ProtoMessage()
func (*GetActivityByIDRequest) ProtoReflect ¶
func (x *GetActivityByIDRequest) ProtoReflect() protoreflect.Message
func (*GetActivityByIDRequest) Reset ¶
func (x *GetActivityByIDRequest) Reset()
func (*GetActivityByIDRequest) String ¶
func (x *GetActivityByIDRequest) String() string
type GetActivityByIDResponse ¶
type GetActivityByIDResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updated_at,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=deleted_at,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*GetActivityByIDResponse) Descriptor
deprecated
func (*GetActivityByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetActivityByIDResponse.ProtoReflect.Descriptor instead.
func (*GetActivityByIDResponse) GetCreatedAt ¶
func (x *GetActivityByIDResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetActivityByIDResponse) GetDeletedAt ¶
func (x *GetActivityByIDResponse) GetDeletedAt() *timestamppb.Timestamp
func (*GetActivityByIDResponse) GetId ¶
func (x *GetActivityByIDResponse) GetId() string
func (*GetActivityByIDResponse) GetTitle ¶
func (x *GetActivityByIDResponse) GetTitle() string
func (*GetActivityByIDResponse) GetUpdatedAt ¶
func (x *GetActivityByIDResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*GetActivityByIDResponse) ProtoMessage ¶
func (*GetActivityByIDResponse) ProtoMessage()
func (*GetActivityByIDResponse) ProtoReflect ¶
func (x *GetActivityByIDResponse) ProtoReflect() protoreflect.Message
func (*GetActivityByIDResponse) Reset ¶
func (x *GetActivityByIDResponse) Reset()
func (*GetActivityByIDResponse) String ¶
func (x *GetActivityByIDResponse) String() string
type GetAllActivityRequest ¶
type GetAllActivityRequest struct { Search *string `protobuf:"bytes,1,opt,name=search,proto3,oneof" json:"search,omitempty"` Page *int32 `protobuf:"varint,2,opt,name=page,proto3,oneof" json:"page,omitempty"` Limit *int32 `protobuf:"varint,3,opt,name=limit,proto3,oneof" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetAllActivityRequest) Descriptor
deprecated
func (*GetAllActivityRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllActivityRequest.ProtoReflect.Descriptor instead.
func (*GetAllActivityRequest) GetLimit ¶
func (x *GetAllActivityRequest) GetLimit() int32
func (*GetAllActivityRequest) GetPage ¶
func (x *GetAllActivityRequest) GetPage() int32
func (*GetAllActivityRequest) GetSearch ¶
func (x *GetAllActivityRequest) GetSearch() string
func (*GetAllActivityRequest) ProtoMessage ¶
func (*GetAllActivityRequest) ProtoMessage()
func (*GetAllActivityRequest) ProtoReflect ¶
func (x *GetAllActivityRequest) ProtoReflect() protoreflect.Message
func (*GetAllActivityRequest) Reset ¶
func (x *GetAllActivityRequest) Reset()
func (*GetAllActivityRequest) String ¶
func (x *GetAllActivityRequest) String() string
type GetAllActivityResponse ¶
type GetAllActivityResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Data []*GetActivityByIDResponse `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` Paging *ActivityPaging `protobuf:"bytes,3,opt,name=paging,proto3" json:"paging,omitempty"` // contains filtered or unexported fields }
func (*GetAllActivityResponse) Descriptor
deprecated
func (*GetAllActivityResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllActivityResponse.ProtoReflect.Descriptor instead.
func (*GetAllActivityResponse) GetData ¶
func (x *GetAllActivityResponse) GetData() []*GetActivityByIDResponse
func (*GetAllActivityResponse) GetMessage ¶
func (x *GetAllActivityResponse) GetMessage() string
func (*GetAllActivityResponse) GetPaging ¶
func (x *GetAllActivityResponse) GetPaging() *ActivityPaging
func (*GetAllActivityResponse) ProtoMessage ¶
func (*GetAllActivityResponse) ProtoMessage()
func (*GetAllActivityResponse) ProtoReflect ¶
func (x *GetAllActivityResponse) ProtoReflect() protoreflect.Message
func (*GetAllActivityResponse) Reset ¶
func (x *GetAllActivityResponse) Reset()
func (*GetAllActivityResponse) String ¶
func (x *GetAllActivityResponse) String() string
type UnimplementedActivityServiceServer ¶
type UnimplementedActivityServiceServer struct { }
UnimplementedActivityServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedActivityServiceServer) Create ¶
func (UnimplementedActivityServiceServer) Create(context.Context, *CreateActivityRequest) (*ActivityBaseResponse, error)
func (UnimplementedActivityServiceServer) Delete ¶
func (UnimplementedActivityServiceServer) Delete(context.Context, *DeleteActivityByIDRequest) (*ActivityBaseResponse, error)
func (UnimplementedActivityServiceServer) GetAll ¶
func (UnimplementedActivityServiceServer) GetAll(context.Context, *GetAllActivityRequest) (*GetAllActivityResponse, error)
func (UnimplementedActivityServiceServer) Update ¶
func (UnimplementedActivityServiceServer) Update(context.Context, *UpdateActivityByIDRequest) (*ActivityBaseResponse, error)
type UnsafeActivityServiceServer ¶
type UnsafeActivityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeActivityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActivityServiceServer will result in compilation errors.
type UpdateActivityByIDRequest ¶
type UpdateActivityByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // contains filtered or unexported fields }
func (*UpdateActivityByIDRequest) Descriptor
deprecated
func (*UpdateActivityByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateActivityByIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateActivityByIDRequest) GetId ¶
func (x *UpdateActivityByIDRequest) GetId() string
func (*UpdateActivityByIDRequest) GetTitle ¶
func (x *UpdateActivityByIDRequest) GetTitle() string
func (*UpdateActivityByIDRequest) ProtoMessage ¶
func (*UpdateActivityByIDRequest) ProtoMessage()
func (*UpdateActivityByIDRequest) ProtoReflect ¶
func (x *UpdateActivityByIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateActivityByIDRequest) Reset ¶
func (x *UpdateActivityByIDRequest) Reset()
func (*UpdateActivityByIDRequest) String ¶
func (x *UpdateActivityByIDRequest) String() string