v1

package
v0.0.0-...-3cf6aa3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Activity_Log_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.Activity_Log",
	HandlerType: (*Activity_LogServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Insert",
			Handler:    _Activity_Log_Insert_Handler,
		},
		{
			MethodName: "Retrieve",
			Handler:    _Activity_Log_Retrieve_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Activity_Log_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/activity.proto",
}

Activity_Log_ServiceDesc is the grpc.ServiceDesc for Activity_Log 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_api_v1_activity_proto protoreflect.FileDescriptor

Functions

func RegisterActivity_LogServer

func RegisterActivity_LogServer(s grpc.ServiceRegistrar, srv Activity_LogServer)

Types

type Activities

type Activities struct {
	Activities []*Activity `protobuf:"bytes,1,rep,name=activities,proto3" json:"activities,omitempty"`
	// contains filtered or unexported fields
}

func (*Activities) Descriptor deprecated

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

Deprecated: Use Activities.ProtoReflect.Descriptor instead.

func (*Activities) GetActivities

func (x *Activities) GetActivities() []*Activity

func (*Activities) ProtoMessage

func (*Activities) ProtoMessage()

func (*Activities) ProtoReflect

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

func (*Activities) Reset

func (x *Activities) Reset()

func (*Activities) String

func (x *Activities) String() string

type Activity

type Activity struct {
	Id          int32                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Time        *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetDescription

func (x *Activity) GetDescription() string

func (*Activity) GetId

func (x *Activity) GetId() int32

func (*Activity) GetTime

func (x *Activity) GetTime() *timestamppb.Timestamp

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

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

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type ActivityQuery

type ActivityQuery struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivityQuery) Descriptor deprecated

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

Deprecated: Use ActivityQuery.ProtoReflect.Descriptor instead.

func (*ActivityQuery) GetOffset

func (x *ActivityQuery) GetOffset() int32

func (*ActivityQuery) ProtoMessage

func (*ActivityQuery) ProtoMessage()

func (*ActivityQuery) ProtoReflect

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

func (*ActivityQuery) Reset

func (x *ActivityQuery) Reset()

func (*ActivityQuery) String

func (x *ActivityQuery) String() string

type Activity_LogClient

type Activity_LogClient interface {
	Insert(ctx context.Context, in *Activity, opts ...grpc.CallOption) (*InsertResponse, error)
	Retrieve(ctx context.Context, in *RetrieveRequest, opts ...grpc.CallOption) (*Activity, error)
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*Activities, error)
}

Activity_LogClient is the client API for Activity_Log 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 Activity_LogServer

type Activity_LogServer interface {
	Insert(context.Context, *Activity) (*InsertResponse, error)
	Retrieve(context.Context, *RetrieveRequest) (*Activity, error)
	List(context.Context, *ListRequest) (*Activities, error)
	// contains filtered or unexported methods
}

Activity_LogServer is the server API for Activity_Log service. All implementations must embed UnimplementedActivity_LogServer for forward compatibility

type InsertResponse

type InsertResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*InsertResponse) Descriptor deprecated

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

Deprecated: Use InsertResponse.ProtoReflect.Descriptor instead.

func (*InsertResponse) GetId

func (x *InsertResponse) GetId() int32

func (*InsertResponse) ProtoMessage

func (*InsertResponse) ProtoMessage()

func (*InsertResponse) ProtoReflect

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

func (*InsertResponse) Reset

func (x *InsertResponse) Reset()

func (*InsertResponse) String

func (x *InsertResponse) String() string

type ListRequest

type ListRequest struct {
	Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetOffset

func (x *ListRequest) GetOffset() int32

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type RetrieveRequest

type RetrieveRequest struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RetrieveRequest) Descriptor deprecated

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

Deprecated: Use RetrieveRequest.ProtoReflect.Descriptor instead.

func (*RetrieveRequest) GetId

func (x *RetrieveRequest) GetId() int32

func (*RetrieveRequest) ProtoMessage

func (*RetrieveRequest) ProtoMessage()

func (*RetrieveRequest) ProtoReflect

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

func (*RetrieveRequest) Reset

func (x *RetrieveRequest) Reset()

func (*RetrieveRequest) String

func (x *RetrieveRequest) String() string

type UnimplementedActivity_LogServer

type UnimplementedActivity_LogServer struct {
}

UnimplementedActivity_LogServer must be embedded to have forward compatible implementations.

func (UnimplementedActivity_LogServer) Insert

func (UnimplementedActivity_LogServer) List

func (UnimplementedActivity_LogServer) Retrieve

type UnsafeActivity_LogServer

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

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

Jump to

Keyboard shortcuts

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