activity

package
v0.0.0-...-bc169e4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

View Source
var File_activity_activity_service_proto protoreflect.FileDescriptor
View Source
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

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.

type ActivityServiceServer

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 (*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 (*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) Delete

func (UnimplementedActivityServiceServer) Get

func (UnimplementedActivityServiceServer) GetAll

func (UnimplementedActivityServiceServer) Update

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 (*UpdateActivityByIDRequest) Reset

func (x *UpdateActivityByIDRequest) Reset()

func (*UpdateActivityByIDRequest) String

func (x *UpdateActivityByIDRequest) String() string

Jump to

Keyboard shortcuts

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