reportcomm

package
v0.0.0-...-00872a6 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_reportcomm_report_proto protoreflect.FileDescriptor

Functions

func RegisterReportSvcServer

func RegisterReportSvcServer(s *grpc.Server, srv ReportSvcServer)

Types

type CreateReportReply

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

The response message containing the id of the report

func (*CreateReportReply) Descriptor deprecated

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

Deprecated: Use CreateReportReply.ProtoReflect.Descriptor instead.

func (*CreateReportReply) GetId

func (x *CreateReportReply) GetId() string

func (*CreateReportReply) ProtoMessage

func (*CreateReportReply) ProtoMessage()

func (*CreateReportReply) ProtoReflect

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

func (*CreateReportReply) Reset

func (x *CreateReportReply) Reset()

func (*CreateReportReply) String

func (x *CreateReportReply) String() string

type CreateReportRequest

type CreateReportRequest struct {
	Name   string    `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Period *Interval `protobuf:"bytes,2,opt,name=Period,proto3" json:"Period,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the report details

func (*CreateReportRequest) Descriptor deprecated

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

Deprecated: Use CreateReportRequest.ProtoReflect.Descriptor instead.

func (*CreateReportRequest) GetName

func (x *CreateReportRequest) GetName() string

func (*CreateReportRequest) GetPeriod

func (x *CreateReportRequest) GetPeriod() *Interval

func (*CreateReportRequest) ProtoMessage

func (*CreateReportRequest) ProtoMessage()

func (*CreateReportRequest) ProtoReflect

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

func (*CreateReportRequest) Reset

func (x *CreateReportRequest) Reset()

func (*CreateReportRequest) String

func (x *CreateReportRequest) String() string

type DeleteReportReply

type DeleteReportReply struct {
	// contains filtered or unexported fields
}

The response message to the delete request

func (*DeleteReportReply) Descriptor deprecated

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

Deprecated: Use DeleteReportReply.ProtoReflect.Descriptor instead.

func (*DeleteReportReply) ProtoMessage

func (*DeleteReportReply) ProtoMessage()

func (*DeleteReportReply) ProtoReflect

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

func (*DeleteReportReply) Reset

func (x *DeleteReportReply) Reset()

func (*DeleteReportReply) String

func (x *DeleteReportReply) String() string

type DeleteReportRequest

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

The request message for the delete request

func (*DeleteReportRequest) Descriptor deprecated

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

Deprecated: Use DeleteReportRequest.ProtoReflect.Descriptor instead.

func (*DeleteReportRequest) GetId

func (x *DeleteReportRequest) GetId() string

func (*DeleteReportRequest) ProtoMessage

func (*DeleteReportRequest) ProtoMessage()

func (*DeleteReportRequest) ProtoReflect

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

func (*DeleteReportRequest) Reset

func (x *DeleteReportRequest) Reset()

func (*DeleteReportRequest) String

func (x *DeleteReportRequest) String() string

type Interval

type Interval struct {
	From *timestamp.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To   *timestamp.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	// contains filtered or unexported fields
}

func (*Interval) Descriptor deprecated

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

Deprecated: Use Interval.ProtoReflect.Descriptor instead.

func (*Interval) GetFrom

func (x *Interval) GetFrom() *timestamp.Timestamp

func (*Interval) GetTo

func (x *Interval) GetTo() *timestamp.Timestamp

func (*Interval) ProtoMessage

func (*Interval) ProtoMessage()

func (*Interval) ProtoReflect

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

func (*Interval) Reset

func (x *Interval) Reset()

func (*Interval) String

func (x *Interval) String() string

type ListReportsReply

type ListReportsReply struct {
	Reports []*Report `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports,omitempty"`
	// contains filtered or unexported fields
}

The response message to the list reports request.

func (*ListReportsReply) Descriptor deprecated

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

Deprecated: Use ListReportsReply.ProtoReflect.Descriptor instead.

func (*ListReportsReply) GetReports

func (x *ListReportsReply) GetReports() []*Report

func (*ListReportsReply) ProtoMessage

func (*ListReportsReply) ProtoMessage()

func (*ListReportsReply) ProtoReflect

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

func (*ListReportsReply) Reset

func (x *ListReportsReply) Reset()

func (*ListReportsReply) String

func (x *ListReportsReply) String() string

type ListReportsRequest

type ListReportsRequest struct {
	// contains filtered or unexported fields
}

The request message for the list reports request

func (*ListReportsRequest) Descriptor deprecated

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

Deprecated: Use ListReportsRequest.ProtoReflect.Descriptor instead.

func (*ListReportsRequest) ProtoMessage

func (*ListReportsRequest) ProtoMessage()

func (*ListReportsRequest) ProtoReflect

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

func (*ListReportsRequest) Reset

func (x *ListReportsRequest) Reset()

func (*ListReportsRequest) String

func (x *ListReportsRequest) String() string

type ReadReportReply

type ReadReportReply struct {
	Report *Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report,omitempty"`
	// contains filtered or unexported fields
}

The response message to the read request

func (*ReadReportReply) Descriptor deprecated

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

Deprecated: Use ReadReportReply.ProtoReflect.Descriptor instead.

func (*ReadReportReply) GetReport

func (x *ReadReportReply) GetReport() *Report

func (*ReadReportReply) ProtoMessage

func (*ReadReportReply) ProtoMessage()

func (*ReadReportReply) ProtoReflect

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

func (*ReadReportReply) Reset

func (x *ReadReportReply) Reset()

func (*ReadReportReply) String

func (x *ReadReportReply) String() string

type ReadReportRequest

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

The request message for the read request

func (*ReadReportRequest) Descriptor deprecated

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

Deprecated: Use ReadReportRequest.ProtoReflect.Descriptor instead.

func (*ReadReportRequest) GetId

func (x *ReadReportRequest) GetId() string

func (*ReadReportRequest) ProtoMessage

func (*ReadReportRequest) ProtoMessage()

func (*ReadReportRequest) ProtoReflect

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

func (*ReadReportRequest) Reset

func (x *ReadReportRequest) Reset()

func (*ReadReportRequest) String

func (x *ReadReportRequest) String() string

type Report

type Report struct {
	Id         string                   `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name       string                   `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	OrderId    string                   `protobuf:"bytes,3,opt,name=OrderId,proto3" json:"OrderId,omitempty"`
	Period     *Interval                `protobuf:"bytes,4,opt,name=Period,proto3" json:"Period,omitempty"`
	Activities []*activitycomm.Activity `protobuf:"bytes,5,rep,name=Activities,proto3" json:"Activities,omitempty"`
	// contains filtered or unexported fields
}

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetActivities

func (x *Report) GetActivities() []*activitycomm.Activity

func (*Report) GetId

func (x *Report) GetId() string

func (*Report) GetName

func (x *Report) GetName() string

func (*Report) GetOrderId

func (x *Report) GetOrderId() string

func (*Report) GetPeriod

func (x *Report) GetPeriod() *Interval

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type ReportSvcClient

type ReportSvcClient interface {
	// Creates a new report
	Create(ctx context.Context, in *CreateReportRequest, opts ...grpc.CallOption) (*CreateReportReply, error)
	// Reads an report
	Read(ctx context.Context, in *ReadReportRequest, opts ...grpc.CallOption) (*ReadReportReply, error)
	// Delete an report
	Delete(ctx context.Context, in *DeleteReportRequest, opts ...grpc.CallOption) (*DeleteReportReply, error)
	// List an report
	List(ctx context.Context, in *ListReportsRequest, opts ...grpc.CallOption) (*ListReportsReply, error)
}

ReportSvcClient is the client API for ReportSvc service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewReportSvcClient

func NewReportSvcClient(cc grpc.ClientConnInterface) ReportSvcClient

type ReportSvcServer

type ReportSvcServer interface {
	// Creates a new report
	Create(context.Context, *CreateReportRequest) (*CreateReportReply, error)
	// Reads an report
	Read(context.Context, *ReadReportRequest) (*ReadReportReply, error)
	// Delete an report
	Delete(context.Context, *DeleteReportRequest) (*DeleteReportReply, error)
	// List an report
	List(context.Context, *ListReportsRequest) (*ListReportsReply, error)
}

ReportSvcServer is the server API for ReportSvc service.

type UnimplementedReportSvcServer

type UnimplementedReportSvcServer struct {
}

UnimplementedReportSvcServer can be embedded to have forward compatible implementations.

func (*UnimplementedReportSvcServer) Create

func (*UnimplementedReportSvcServer) Delete

func (*UnimplementedReportSvcServer) List

func (*UnimplementedReportSvcServer) Read

type UpdateReportReply

type UpdateReportReply struct {
	// contains filtered or unexported fields
}

The response message to the update request. Returns the old values for the Report

func (*UpdateReportReply) Descriptor deprecated

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

Deprecated: Use UpdateReportReply.ProtoReflect.Descriptor instead.

func (*UpdateReportReply) ProtoMessage

func (*UpdateReportReply) ProtoMessage()

func (*UpdateReportReply) ProtoReflect

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

func (*UpdateReportReply) Reset

func (x *UpdateReportReply) Reset()

func (*UpdateReportReply) String

func (x *UpdateReportReply) String() string

type UpdateReportRequest

type UpdateReportRequest struct {
	Id          string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
	Code        string `protobuf:"bytes,3,opt,name=Code,proto3" json:"Code,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	// contains filtered or unexported fields
}

The request message for the update request

func (*UpdateReportRequest) Descriptor deprecated

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

Deprecated: Use UpdateReportRequest.ProtoReflect.Descriptor instead.

func (*UpdateReportRequest) GetCode

func (x *UpdateReportRequest) GetCode() string

func (*UpdateReportRequest) GetDescription

func (x *UpdateReportRequest) GetDescription() string

func (*UpdateReportRequest) GetId

func (x *UpdateReportRequest) GetId() string

func (*UpdateReportRequest) GetName

func (x *UpdateReportRequest) GetName() string

func (*UpdateReportRequest) ProtoMessage

func (*UpdateReportRequest) ProtoMessage()

func (*UpdateReportRequest) ProtoReflect

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

func (*UpdateReportRequest) Reset

func (x *UpdateReportRequest) Reset()

func (*UpdateReportRequest) String

func (x *UpdateReportRequest) String() string

Jump to

Keyboard shortcuts

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