proto

package
v0.0.0-...-3277539 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecordService_Create_FullMethodName = "/proto.RecordService/Create"
)

Variables

View Source
var File_record_data_proto protoreflect.FileDescriptor
View Source
var RecordService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.RecordService",
	HandlerType: (*RecordServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _RecordService_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "record_data.proto",
}

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

Functions

func RegisterRecordServiceServer

func RegisterRecordServiceServer(s grpc.ServiceRegistrar, srv RecordServiceServer)

Types

type RecordData

type RecordData struct {
	ServiceName    string                 `protobuf:"bytes,1,opt,name=serviceName,proto3" json:"serviceName,omitempty"`
	ServiceVersion string                 `protobuf:"bytes,2,opt,name=serviceVersion,proto3" json:"serviceVersion,omitempty"`
	EventId        string                 `protobuf:"bytes,3,opt,name=eventId,proto3" json:"eventId,omitempty"`
	EventTimestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=eventTimestamp,proto3" json:"eventTimestamp,omitempty"`
	BizName        string                 `protobuf:"bytes,5,opt,name=bizName,proto3" json:"bizName,omitempty"`
	BizVersion     string                 `protobuf:"bytes,6,opt,name=bizVersion,proto3" json:"bizVersion,omitempty"`
	BindIds        map[string]string      `` /* 155-byte string literal not displayed */
	Data           []byte                 `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func NewRecordData

func NewRecordData(serviceName, bizName string) *RecordData

func (*RecordData) Descriptor deprecated

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

Deprecated: Use RecordData.ProtoReflect.Descriptor instead.

func (*RecordData) GetBindIds

func (x *RecordData) GetBindIds() map[string]string

func (*RecordData) GetBizName

func (x *RecordData) GetBizName() string

func (*RecordData) GetBizVersion

func (x *RecordData) GetBizVersion() string

func (*RecordData) GetData

func (x *RecordData) GetData() []byte

func (*RecordData) GetEventId

func (x *RecordData) GetEventId() string

func (*RecordData) GetEventTimestamp

func (x *RecordData) GetEventTimestamp() *timestamppb.Timestamp

func (*RecordData) GetServiceName

func (x *RecordData) GetServiceName() string

func (*RecordData) GetServiceVersion

func (x *RecordData) GetServiceVersion() string

func (*RecordData) ProtoMessage

func (*RecordData) ProtoMessage()

func (*RecordData) ProtoReflect

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

func (*RecordData) Reset

func (x *RecordData) Reset()

func (*RecordData) String

func (x *RecordData) String() string

func (*RecordData) WithBindIds

func (data *RecordData) WithBindIds(bindIds map[string]string) *RecordData

func (*RecordData) WithBizV

func (data *RecordData) WithBizV(version string) *RecordData

update BizVersion

func (*RecordData) WithData

func (data *RecordData) WithData(item any) *RecordData

func (*RecordData) WithEventId

func (data *RecordData) WithEventId(eventId string) *RecordData

func (*RecordData) WithSvcV

func (data *RecordData) WithSvcV(version string) *RecordData

update ServiceVersion

type RecordId

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

func (*RecordId) Descriptor deprecated

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

Deprecated: Use RecordId.ProtoReflect.Descriptor instead.

func (*RecordId) GetId

func (x *RecordId) GetId() string

func (*RecordId) ProtoMessage

func (*RecordId) ProtoMessage()

func (*RecordId) ProtoReflect

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

func (*RecordId) Reset

func (x *RecordId) Reset()

func (*RecordId) String

func (x *RecordId) String() string

type RecordServiceClient

type RecordServiceClient interface {
	Create(ctx context.Context, in *RecordData, opts ...grpc.CallOption) (*RecordId, error)
}

RecordServiceClient is the client API for RecordService 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 RecordServiceServer

type RecordServiceServer interface {
	Create(context.Context, *RecordData) (*RecordId, error)
}

RecordServiceServer is the server API for RecordService service. All implementations must embed UnimplementedRecordServiceServer for forward compatibility

type UnimplementedRecordServiceServer

type UnimplementedRecordServiceServer struct {
}

UnimplementedRecordServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRecordServiceServer) Create

type UnsafeRecordServiceServer

type UnsafeRecordServiceServer interface {
}

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

Jump to

Keyboard shortcuts

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