proto

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_service_task_interface_proto_entity_proto protoreflect.FileDescriptor
View Source
var File_service_task_interface_proto_service_proto protoreflect.FileDescriptor

Functions

func NewTaskServiceEndpoints

func NewTaskServiceEndpoints() []*api.Endpoint

func RegisterTaskServiceHandler

func RegisterTaskServiceHandler(s server.Server, hdlr TaskServiceHandler, opts ...server.HandlerOption) error

Types

type CreateRequest

type CreateRequest struct {
	Description *wrappers.StringValue `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

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

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetDescription

func (x *CreateRequest) GetDescription() *wrappers.StringValue

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

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

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

func (*CreateRequest) Validate

func (m *CreateRequest) Validate() error

Validate checks the field values on CreateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateRequestValidationError

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

CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.

func (CreateRequestValidationError) Cause

Cause function returns cause value.

func (CreateRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRequestValidationError) ErrorName

func (e CreateRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CreateRequestValidationError) Field

Field function returns field value.

func (CreateRequestValidationError) Key

Key function returns key value.

func (CreateRequestValidationError) Reason

Reason function returns reason value.

type CreateResponse

type CreateResponse struct {
	Result *Task `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

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

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetResult

func (x *CreateResponse) GetResult() *Task

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

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

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

func (*CreateResponse) Validate

func (m *CreateResponse) Validate() error

Validate checks the field values on CreateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type CreateResponseValidationError

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

CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.

func (CreateResponseValidationError) Cause

Cause function returns cause value.

func (CreateResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateResponseValidationError) ErrorName

func (e CreateResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CreateResponseValidationError) Field

Field function returns field value.

func (CreateResponseValidationError) Key

Key function returns key value.

func (CreateResponseValidationError) Reason

Reason function returns reason value.

type DeleteRequest added in v0.2.1

type DeleteRequest struct {
	Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRequest) Descriptor deprecated added in v0.2.1

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId added in v0.2.1

func (x *DeleteRequest) GetId() *wrappers.StringValue

func (*DeleteRequest) ProtoMessage added in v0.2.1

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect added in v0.2.1

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

func (*DeleteRequest) Reset added in v0.2.1

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String added in v0.2.1

func (x *DeleteRequest) String() string

func (*DeleteRequest) Validate added in v0.2.1

func (m *DeleteRequest) Validate() error

Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteRequestValidationError added in v0.2.1

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

DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.

func (DeleteRequestValidationError) Cause added in v0.2.1

Cause function returns cause value.

func (DeleteRequestValidationError) Error added in v0.2.1

Error satisfies the builtin error interface

func (DeleteRequestValidationError) ErrorName added in v0.2.1

func (e DeleteRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteRequestValidationError) Field added in v0.2.1

Field function returns field value.

func (DeleteRequestValidationError) Key added in v0.2.1

Key function returns key value.

func (DeleteRequestValidationError) Reason added in v0.2.1

Reason function returns reason value.

type DeleteResponse added in v0.2.1

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

func (*DeleteResponse) Descriptor deprecated added in v0.2.1

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

Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.

func (*DeleteResponse) ProtoMessage added in v0.2.1

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) ProtoReflect added in v0.2.1

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

func (*DeleteResponse) Reset added in v0.2.1

func (x *DeleteResponse) Reset()

func (*DeleteResponse) String added in v0.2.1

func (x *DeleteResponse) String() string

func (*DeleteResponse) Validate added in v0.2.1

func (m *DeleteResponse) Validate() error

Validate checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type DeleteResponseValidationError added in v0.2.1

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

DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.

func (DeleteResponseValidationError) Cause added in v0.2.1

Cause function returns cause value.

func (DeleteResponseValidationError) Error added in v0.2.1

Error satisfies the builtin error interface

func (DeleteResponseValidationError) ErrorName added in v0.2.1

func (e DeleteResponseValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteResponseValidationError) Field added in v0.2.1

Field function returns field value.

func (DeleteResponseValidationError) Key added in v0.2.1

Key function returns key value.

func (DeleteResponseValidationError) Reason added in v0.2.1

Reason function returns reason value.

type GetRequest added in v0.2.0

type GetRequest struct {
	Id *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId added in v0.2.0

func (x *GetRequest) GetId() *wrappers.StringValue

func (*GetRequest) ProtoMessage added in v0.2.0

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect added in v0.2.0

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

func (*GetRequest) Reset added in v0.2.0

func (x *GetRequest) Reset()

func (*GetRequest) String added in v0.2.0

func (x *GetRequest) String() string

func (*GetRequest) Validate added in v0.2.0

func (m *GetRequest) Validate() error

Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetRequestValidationError added in v0.2.0

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

GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.

func (GetRequestValidationError) Cause added in v0.2.0

func (e GetRequestValidationError) Cause() error

Cause function returns cause value.

func (GetRequestValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (GetRequestValidationError) ErrorName added in v0.2.0

func (e GetRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRequestValidationError) Field added in v0.2.0

Field function returns field value.

func (GetRequestValidationError) Key added in v0.2.0

Key function returns key value.

func (GetRequestValidationError) Reason added in v0.2.0

func (e GetRequestValidationError) Reason() string

Reason function returns reason value.

type GetResponse added in v0.2.0

type GetResponse struct {
	Result *Task `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetResult added in v0.2.0

func (x *GetResponse) GetResult() *Task

func (*GetResponse) ProtoMessage added in v0.2.0

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect added in v0.2.0

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

func (*GetResponse) Reset added in v0.2.0

func (x *GetResponse) Reset()

func (*GetResponse) String added in v0.2.0

func (x *GetResponse) String() string

func (*GetResponse) Validate added in v0.2.0

func (m *GetResponse) Validate() error

Validate checks the field values on GetResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type GetResponseValidationError added in v0.2.0

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

GetResponseValidationError is the validation error returned by GetResponse.Validate if the designated constraints aren't met.

func (GetResponseValidationError) Cause added in v0.2.0

Cause function returns cause value.

func (GetResponseValidationError) Error added in v0.2.0

Error satisfies the builtin error interface

func (GetResponseValidationError) ErrorName added in v0.2.0

func (e GetResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetResponseValidationError) Field added in v0.2.0

Field function returns field value.

func (GetResponseValidationError) Key added in v0.2.0

Key function returns key value.

func (GetResponseValidationError) Reason added in v0.2.0

Reason function returns reason value.

type ListRequest added in v0.2.1

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

func (*ListRequest) Descriptor deprecated added in v0.2.1

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) ProtoMessage added in v0.2.1

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect added in v0.2.1

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

func (*ListRequest) Reset added in v0.2.1

func (x *ListRequest) Reset()

func (*ListRequest) String added in v0.2.1

func (x *ListRequest) String() string

func (*ListRequest) Validate added in v0.2.1

func (m *ListRequest) Validate() error

Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListRequestValidationError added in v0.2.1

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

ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.

func (ListRequestValidationError) Cause added in v0.2.1

Cause function returns cause value.

func (ListRequestValidationError) Error added in v0.2.1

Error satisfies the builtin error interface

func (ListRequestValidationError) ErrorName added in v0.2.1

func (e ListRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRequestValidationError) Field added in v0.2.1

Field function returns field value.

func (ListRequestValidationError) Key added in v0.2.1

Key function returns key value.

func (ListRequestValidationError) Reason added in v0.2.1

Reason function returns reason value.

type ListResponse added in v0.2.1

type ListResponse struct {
	Results []*Task `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*ListResponse) Descriptor deprecated added in v0.2.1

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetResults added in v0.2.1

func (x *ListResponse) GetResults() []*Task

func (*ListResponse) ProtoMessage added in v0.2.1

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect added in v0.2.1

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

func (*ListResponse) Reset added in v0.2.1

func (x *ListResponse) Reset()

func (*ListResponse) String added in v0.2.1

func (x *ListResponse) String() string

func (*ListResponse) Validate added in v0.2.1

func (m *ListResponse) Validate() error

Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ListResponseValidationError added in v0.2.1

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

ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.

func (ListResponseValidationError) Cause added in v0.2.1

Cause function returns cause value.

func (ListResponseValidationError) Error added in v0.2.1

Error satisfies the builtin error interface

func (ListResponseValidationError) ErrorName added in v0.2.1

func (e ListResponseValidationError) ErrorName() string

ErrorName returns error name.

func (ListResponseValidationError) Field added in v0.2.1

Field function returns field value.

func (ListResponseValidationError) Key added in v0.2.1

Key function returns key value.

func (ListResponseValidationError) Reason added in v0.2.1

Reason function returns reason value.

type Task

type Task struct {
	Id          *wrappers.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Description *wrappers.StringValue `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   *timestamp.Timestamp  `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamp.Timestamp  `protobuf:"bytes,4,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	DeletedAt   *timestamp.Timestamp  `protobuf:"bytes,5,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"`
	// contains filtered or unexported fields
}

Task Entity

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCreatedAt

func (x *Task) GetCreatedAt() *timestamp.Timestamp

func (*Task) GetDeletedAt

func (x *Task) GetDeletedAt() *timestamp.Timestamp

func (*Task) GetDescription

func (x *Task) GetDescription() *wrappers.StringValue

func (*Task) GetId

func (x *Task) GetId() *wrappers.StringValue

func (*Task) GetUpdatedAt

func (x *Task) GetUpdatedAt() *timestamp.Timestamp

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

func (*Task) Validate

func (m *Task) Validate() error

Validate checks the field values on Task with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type TaskService

type TaskService interface {
	Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error)
	List(ctx context.Context, in *ListRequest, opts ...client.CallOption) (*ListResponse, error)
	Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*GetResponse, error)
	Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error)
}

func NewTaskService

func NewTaskService(name string, c client.Client) TaskService

type TaskValidationError

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

TaskValidationError is the validation error returned by Task.Validate if the designated constraints aren't met.

func (TaskValidationError) Cause

func (e TaskValidationError) Cause() error

Cause function returns cause value.

func (TaskValidationError) Error

func (e TaskValidationError) Error() string

Error satisfies the builtin error interface

func (TaskValidationError) ErrorName

func (e TaskValidationError) ErrorName() string

ErrorName returns error name.

func (TaskValidationError) Field

func (e TaskValidationError) Field() string

Field function returns field value.

func (TaskValidationError) Key

func (e TaskValidationError) Key() bool

Key function returns key value.

func (TaskValidationError) Reason

func (e TaskValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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