Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
contacts1/pkg/pb/service.proto
It has these top-level messages:
VersionResponse Contact ReverseRequest ReverseResponse CreateContactRequest CreateContactResponse ReadContactRequest ReadContactResponse UpdateContactRequest UpdateContactResponse DeleteContactRequest DeleteContactResponse
Package pb is a generated protocol buffer package.
It is generated from these files:
contacts1/pkg/pb/service.proto
It has these top-level messages:
VersionResponse Contact ReverseRequest ReverseResponse CreateContactRequest CreateContactResponse ReadContactRequest ReadContactResponse UpdateContactRequest UpdateContactResponse DeleteContactRequest DeleteContactResponse
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func DefaultDeleteContact(ctx context.Context, in *Contact, db *gorm1.DB) error
- func DefaultDeleteContactSet(ctx context.Context, in []*Contact, db *gorm1.DB) error
- func RegisterContacts1Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterContacts1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client Contacts1Client) error
- func RegisterContacts1HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterContacts1Server(s *grpc.Server, srv Contacts1Server)
- type Contact
- func DefaultApplyFieldMaskContact(ctx context.Context, patchee *Contact, patcher *Contact, ...) (*Contact, error)
- func DefaultCreateContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)
- func DefaultListContact(ctx context.Context, db *gorm1.DB) ([]*Contact, error)
- func DefaultPatchContact(ctx context.Context, in *Contact, updateMask *field_mask1.FieldMask, ...) (*Contact, error)
- func DefaultReadContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)
- func DefaultStrictUpdateContact(ctx context.Context, in *Contact, db *gorm1.DB) (*Contact, error)
- func (*Contact) Descriptor() ([]byte, []int)
- func (m *Contact) GetEmail() string
- func (m *Contact) GetFirstName() string
- func (m *Contact) GetHomeAddress() string
- func (m *Contact) GetId() int64
- func (m *Contact) GetLastName() string
- func (m *Contact) GetMiddleName() string
- func (*Contact) ProtoMessage()
- func (m *Contact) Reset()
- func (m *Contact) String() string
- func (m *Contact) ToORM(ctx context.Context) (ContactORM, error)
- func (m *Contact) Validate() error
- type ContactORM
- type ContactORMWithAfterCreate_
- type ContactORMWithAfterDeleteSet
- type ContactORMWithAfterDelete_
- type ContactORMWithAfterListFind
- type ContactORMWithAfterReadFind
- type ContactORMWithAfterStrictUpdateSave
- type ContactORMWithBeforeCreate_
- type ContactORMWithBeforeDeleteSet
- type ContactORMWithBeforeDelete_
- type ContactORMWithBeforeListApplyQuery
- type ContactORMWithBeforeListFind
- type ContactORMWithBeforeReadApplyQuery
- type ContactORMWithBeforeReadFind
- type ContactORMWithBeforeStrictUpdateCleanup
- type ContactORMWithBeforeStrictUpdateSave
- type ContactValidationError
- type ContactWithAfterPatchSave
- type ContactWithAfterToORM
- type ContactWithAfterToPB
- type ContactWithBeforePatchApplyFieldMask
- type ContactWithBeforePatchRead
- type ContactWithBeforePatchSave
- type ContactWithBeforeToORM
- type ContactWithBeforeToPB
- type Contacts1Client
- type Contacts1ContactWithAfterCreate
- type Contacts1ContactWithAfterDelete
- type Contacts1ContactWithAfterRead
- type Contacts1ContactWithAfterUpdate
- type Contacts1ContactWithBeforeCreate
- type Contacts1ContactWithBeforeDelete
- type Contacts1ContactWithBeforeRead
- type Contacts1ContactWithBeforeUpdate
- type Contacts1DefaultServer
- func (m *Contacts1DefaultServer) Create(ctx context.Context, in *CreateContactRequest) (*CreateContactResponse, error)
- func (m *Contacts1DefaultServer) Delete(ctx context.Context, in *DeleteContactRequest) (*DeleteContactResponse, error)
- func (m *Contacts1DefaultServer) GetVersion(ctx context.Context, in *google_protobuf.Empty) (*VersionResponse, error)
- func (m *Contacts1DefaultServer) Read(ctx context.Context, in *ReadContactRequest) (*ReadContactResponse, error)
- func (m *Contacts1DefaultServer) Reverse(ctx context.Context, in *ReverseRequest) (*ReverseResponse, error)
- func (m *Contacts1DefaultServer) Update(ctx context.Context, in *UpdateContactRequest) (*UpdateContactResponse, error)
- type Contacts1Server
- type CreateContactRequest
- type CreateContactRequestValidationError
- func (e CreateContactRequestValidationError) Cause() error
- func (e CreateContactRequestValidationError) Error() string
- func (e CreateContactRequestValidationError) ErrorName() string
- func (e CreateContactRequestValidationError) Field() string
- func (e CreateContactRequestValidationError) Key() bool
- func (e CreateContactRequestValidationError) Reason() string
- type CreateContactResponse
- type CreateContactResponseValidationError
- func (e CreateContactResponseValidationError) Cause() error
- func (e CreateContactResponseValidationError) Error() string
- func (e CreateContactResponseValidationError) ErrorName() string
- func (e CreateContactResponseValidationError) Field() string
- func (e CreateContactResponseValidationError) Key() bool
- func (e CreateContactResponseValidationError) Reason() string
- type DeleteContactRequest
- type DeleteContactRequestValidationError
- func (e DeleteContactRequestValidationError) Cause() error
- func (e DeleteContactRequestValidationError) Error() string
- func (e DeleteContactRequestValidationError) ErrorName() string
- func (e DeleteContactRequestValidationError) Field() string
- func (e DeleteContactRequestValidationError) Key() bool
- func (e DeleteContactRequestValidationError) Reason() string
- type DeleteContactResponse
- type DeleteContactResponseValidationError
- func (e DeleteContactResponseValidationError) Cause() error
- func (e DeleteContactResponseValidationError) Error() string
- func (e DeleteContactResponseValidationError) ErrorName() string
- func (e DeleteContactResponseValidationError) Field() string
- func (e DeleteContactResponseValidationError) Key() bool
- func (e DeleteContactResponseValidationError) Reason() string
- type ReadContactRequest
- type ReadContactRequestValidationError
- func (e ReadContactRequestValidationError) Cause() error
- func (e ReadContactRequestValidationError) Error() string
- func (e ReadContactRequestValidationError) ErrorName() string
- func (e ReadContactRequestValidationError) Field() string
- func (e ReadContactRequestValidationError) Key() bool
- func (e ReadContactRequestValidationError) Reason() string
- type ReadContactResponse
- type ReadContactResponseValidationError
- func (e ReadContactResponseValidationError) Cause() error
- func (e ReadContactResponseValidationError) Error() string
- func (e ReadContactResponseValidationError) ErrorName() string
- func (e ReadContactResponseValidationError) Field() string
- func (e ReadContactResponseValidationError) Key() bool
- func (e ReadContactResponseValidationError) Reason() string
- type ReverseRequest
- type ReverseRequestValidationError
- func (e ReverseRequestValidationError) Cause() error
- func (e ReverseRequestValidationError) Error() string
- func (e ReverseRequestValidationError) ErrorName() string
- func (e ReverseRequestValidationError) Field() string
- func (e ReverseRequestValidationError) Key() bool
- func (e ReverseRequestValidationError) Reason() string
- type ReverseResponse
- type ReverseResponseValidationError
- func (e ReverseResponseValidationError) Cause() error
- func (e ReverseResponseValidationError) Error() string
- func (e ReverseResponseValidationError) ErrorName() string
- func (e ReverseResponseValidationError) Field() string
- func (e ReverseResponseValidationError) Key() bool
- func (e ReverseResponseValidationError) Reason() string
- type UpdateContactRequest
- type UpdateContactRequestValidationError
- func (e UpdateContactRequestValidationError) Cause() error
- func (e UpdateContactRequestValidationError) Error() string
- func (e UpdateContactRequestValidationError) ErrorName() string
- func (e UpdateContactRequestValidationError) Field() string
- func (e UpdateContactRequestValidationError) Key() bool
- func (e UpdateContactRequestValidationError) Reason() string
- type UpdateContactResponse
- type UpdateContactResponseValidationError
- func (e UpdateContactResponseValidationError) Cause() error
- func (e UpdateContactResponseValidationError) Error() string
- func (e UpdateContactResponseValidationError) ErrorName() string
- func (e UpdateContactResponseValidationError) Field() string
- func (e UpdateContactResponseValidationError) Key() bool
- func (e UpdateContactResponseValidationError) Reason() string
- type VersionResponse
- type VersionResponseValidationError
- func (e VersionResponseValidationError) Cause() error
- func (e VersionResponseValidationError) Error() string
- func (e VersionResponseValidationError) ErrorName() string
- func (e VersionResponseValidationError) Field() string
- func (e VersionResponseValidationError) Key() bool
- func (e VersionResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDeleteContact ¶
func DefaultDeleteContactSet ¶
func RegisterContacts1Handler ¶
func RegisterContacts1Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterContacts1Handler registers the http handlers for service Contacts1 to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterContacts1HandlerClient ¶
func RegisterContacts1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client Contacts1Client) error
RegisterContacts1Handler registers the http handlers for service Contacts1 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "Contacts1Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "Contacts1Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "Contacts1Client" to call the correct interceptors.
func RegisterContacts1HandlerFromEndpoint ¶
func RegisterContacts1HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterContacts1HandlerFromEndpoint is same as RegisterContacts1Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterContacts1Server ¶
func RegisterContacts1Server(s *grpc.Server, srv Contacts1Server)
Types ¶
type Contact ¶
type Contact struct { // The id associated to the person Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"` // The first name of the person. FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName" json:"first_name,omitempty"` // The middle name of the person. MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName" json:"middle_name,omitempty"` // The last name of the person. LastName string `protobuf:"bytes,4,opt,name=last_name,json=lastName" json:"last_name,omitempty"` // The person's primary email. Email string `protobuf:"bytes,5,opt,name=email" json:"email,omitempty"` // The home address of the person. HomeAddress string `protobuf:"bytes,6,opt,name=home_address,json=homeAddress" json:"home_address,omitempty"` }
Contact represents a particular person in an contacts list.
func DefaultApplyFieldMaskContact ¶
func DefaultApplyFieldMaskContact(ctx context.Context, patchee *Contact, patcher *Contact, updateMask *field_mask1.FieldMask, prefix string, db *gorm1.DB) (*Contact, error)
DefaultApplyFieldMaskContact patches an pbObject with patcher according to a field mask.
func DefaultCreateContact ¶
DefaultCreateContact executes a basic gorm create call
func DefaultListContact ¶
DefaultListContact executes a gorm list call
func DefaultPatchContact ¶
func DefaultPatchContact(ctx context.Context, in *Contact, updateMask *field_mask1.FieldMask, db *gorm1.DB) (*Contact, error)
DefaultPatchContact executes a basic gorm update call with patch behavior
func DefaultReadContact ¶
DefaultReadContact executes a basic gorm read call
func DefaultStrictUpdateContact ¶
DefaultStrictUpdateContact clears first level 1:many children and then executes a gorm update call
func (*Contact) Descriptor ¶
func (*Contact) GetFirstName ¶
func (*Contact) GetHomeAddress ¶
func (*Contact) GetLastName ¶
func (*Contact) GetMiddleName ¶
func (*Contact) ProtoMessage ¶
func (*Contact) ProtoMessage()
type ContactORM ¶
type ContactORM struct { Email string FirstName string HomeAddress string Id int64 LastName string MiddleName string }
func (ContactORM) TableName ¶
func (ContactORM) TableName() string
TableName overrides the default tablename generated by GORM
type ContactValidationError ¶
type ContactValidationError struct {
// contains filtered or unexported fields
}
ContactValidationError is the validation error returned by Contact.Validate if the designated constraints aren't met.
func (ContactValidationError) Cause ¶
func (e ContactValidationError) Cause() error
Cause function returns cause value.
func (ContactValidationError) Error ¶
func (e ContactValidationError) Error() string
Error satisfies the builtin error interface
func (ContactValidationError) ErrorName ¶
func (e ContactValidationError) ErrorName() string
ErrorName returns error name.
func (ContactValidationError) Field ¶
func (e ContactValidationError) Field() string
Field function returns field value.
func (ContactValidationError) Key ¶
func (e ContactValidationError) Key() bool
Key function returns key value.
func (ContactValidationError) Reason ¶
func (e ContactValidationError) Reason() string
Reason function returns reason value.
type ContactWithAfterToORM ¶
type ContactWithAfterToORM interface {
AfterToORM(context.Context, *ContactORM) error
}
ContactAfterToORM called after default ToORM code
type ContactWithAfterToPB ¶
ContactAfterToPB called after default ToPB code
type ContactWithBeforeToORM ¶
type ContactWithBeforeToORM interface {
BeforeToORM(context.Context, *ContactORM) error
}
ContactBeforeToORM called before default ToORM code
type ContactWithBeforeToPB ¶
ContactBeforeToPB called before default ToPB code
type Contacts1Client ¶
type Contacts1Client interface { GetVersion(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*VersionResponse, error) Reverse(ctx context.Context, in *ReverseRequest, opts ...grpc.CallOption) (*ReverseResponse, error) // Use this method to create a contact information. Create(ctx context.Context, in *CreateContactRequest, opts ...grpc.CallOption) (*CreateContactResponse, error) // Use this method to read a contact information by identifier. Read(ctx context.Context, in *ReadContactRequest, opts ...grpc.CallOption) (*ReadContactResponse, error) // Use this method to update a contact information. Update(ctx context.Context, in *UpdateContactRequest, opts ...grpc.CallOption) (*UpdateContactResponse, error) // Use this method to delete a particular contact. Delete(ctx context.Context, in *DeleteContactRequest, opts ...grpc.CallOption) (*DeleteContactResponse, error) }
func NewContacts1Client ¶
func NewContacts1Client(cc *grpc.ClientConn) Contacts1Client
type Contacts1ContactWithAfterCreate ¶
type Contacts1ContactWithAfterCreate interface {
AfterCreate(context.Context, *CreateContactResponse, *gorm1.DB) error
}
Contacts1ContactWithAfterCreate called before DefaultCreateContact in the default Create handler
type Contacts1ContactWithAfterDelete ¶
type Contacts1ContactWithAfterDelete interface {
AfterDelete(context.Context, *DeleteContactResponse, *gorm1.DB) error
}
Contacts1ContactWithAfterDelete called before DefaultDeleteContact in the default Delete handler
type Contacts1ContactWithAfterRead ¶
type Contacts1ContactWithAfterRead interface {
AfterRead(context.Context, *ReadContactResponse, *gorm1.DB) error
}
Contacts1ContactWithAfterRead called before DefaultReadContact in the default Read handler
type Contacts1ContactWithAfterUpdate ¶
type Contacts1ContactWithAfterUpdate interface {
AfterUpdate(context.Context, *UpdateContactResponse, *gorm1.DB) error
}
Contacts1ContactWithAfterUpdate called before DefaultUpdateContact in the default Update handler
type Contacts1ContactWithBeforeCreate ¶
type Contacts1ContactWithBeforeCreate interface {
BeforeCreate(context.Context, *gorm1.DB) (*gorm1.DB, error)
}
Contacts1ContactWithBeforeCreate called before DefaultCreateContact in the default Create handler
type Contacts1ContactWithBeforeDelete ¶
type Contacts1ContactWithBeforeDelete interface {
BeforeDelete(context.Context, *gorm1.DB) (*gorm1.DB, error)
}
Contacts1ContactWithBeforeDelete called before DefaultDeleteContact in the default Delete handler
type Contacts1ContactWithBeforeRead ¶
type Contacts1ContactWithBeforeRead interface {
BeforeRead(context.Context, *gorm1.DB) (*gorm1.DB, error)
}
Contacts1ContactWithBeforeRead called before DefaultReadContact in the default Read handler
type Contacts1ContactWithBeforeUpdate ¶
type Contacts1ContactWithBeforeUpdate interface {
BeforeUpdate(context.Context, *gorm1.DB) (*gorm1.DB, error)
}
Contacts1ContactWithBeforeUpdate called before DefaultUpdateContact in the default Update handler
type Contacts1DefaultServer ¶
func (*Contacts1DefaultServer) Create ¶
func (m *Contacts1DefaultServer) Create(ctx context.Context, in *CreateContactRequest) (*CreateContactResponse, error)
Create ...
func (*Contacts1DefaultServer) Delete ¶
func (m *Contacts1DefaultServer) Delete(ctx context.Context, in *DeleteContactRequest) (*DeleteContactResponse, error)
Delete ...
func (*Contacts1DefaultServer) GetVersion ¶
func (m *Contacts1DefaultServer) GetVersion(ctx context.Context, in *google_protobuf.Empty) (*VersionResponse, error)
GetVersion ...
func (*Contacts1DefaultServer) Read ¶
func (m *Contacts1DefaultServer) Read(ctx context.Context, in *ReadContactRequest) (*ReadContactResponse, error)
Read ...
func (*Contacts1DefaultServer) Reverse ¶
func (m *Contacts1DefaultServer) Reverse(ctx context.Context, in *ReverseRequest) (*ReverseResponse, error)
Reverse ...
func (*Contacts1DefaultServer) Update ¶
func (m *Contacts1DefaultServer) Update(ctx context.Context, in *UpdateContactRequest) (*UpdateContactResponse, error)
Update ...
type Contacts1Server ¶
type Contacts1Server interface { GetVersion(context.Context, *google_protobuf.Empty) (*VersionResponse, error) Reverse(context.Context, *ReverseRequest) (*ReverseResponse, error) // Use this method to create a contact information. Create(context.Context, *CreateContactRequest) (*CreateContactResponse, error) // Use this method to read a contact information by identifier. Read(context.Context, *ReadContactRequest) (*ReadContactResponse, error) // Use this method to update a contact information. Update(context.Context, *UpdateContactRequest) (*UpdateContactResponse, error) // Use this method to delete a particular contact. Delete(context.Context, *DeleteContactRequest) (*DeleteContactResponse, error) }
type CreateContactRequest ¶
type CreateContactRequest struct {
Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}
func (*CreateContactRequest) Descriptor ¶
func (*CreateContactRequest) Descriptor() ([]byte, []int)
func (*CreateContactRequest) GetPayload ¶
func (m *CreateContactRequest) GetPayload() *Contact
func (*CreateContactRequest) ProtoMessage ¶
func (*CreateContactRequest) ProtoMessage()
func (*CreateContactRequest) Reset ¶
func (m *CreateContactRequest) Reset()
func (*CreateContactRequest) String ¶
func (m *CreateContactRequest) String() string
func (*CreateContactRequest) Validate ¶
func (m *CreateContactRequest) Validate() error
Validate checks the field values on CreateContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateContactRequestValidationError ¶
type CreateContactRequestValidationError struct {
// contains filtered or unexported fields
}
CreateContactRequestValidationError is the validation error returned by CreateContactRequest.Validate if the designated constraints aren't met.
func (CreateContactRequestValidationError) Cause ¶
func (e CreateContactRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateContactRequestValidationError) Error ¶
func (e CreateContactRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateContactRequestValidationError) ErrorName ¶
func (e CreateContactRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateContactRequestValidationError) Field ¶
func (e CreateContactRequestValidationError) Field() string
Field function returns field value.
func (CreateContactRequestValidationError) Key ¶
func (e CreateContactRequestValidationError) Key() bool
Key function returns key value.
func (CreateContactRequestValidationError) Reason ¶
func (e CreateContactRequestValidationError) Reason() string
Reason function returns reason value.
type CreateContactResponse ¶
type CreateContactResponse struct {
Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*CreateContactResponse) Descriptor ¶
func (*CreateContactResponse) Descriptor() ([]byte, []int)
func (*CreateContactResponse) GetResult ¶
func (m *CreateContactResponse) GetResult() *Contact
func (*CreateContactResponse) ProtoMessage ¶
func (*CreateContactResponse) ProtoMessage()
func (*CreateContactResponse) Reset ¶
func (m *CreateContactResponse) Reset()
func (*CreateContactResponse) String ¶
func (m *CreateContactResponse) String() string
func (*CreateContactResponse) Validate ¶
func (m *CreateContactResponse) Validate() error
Validate checks the field values on CreateContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateContactResponseValidationError ¶
type CreateContactResponseValidationError struct {
// contains filtered or unexported fields
}
CreateContactResponseValidationError is the validation error returned by CreateContactResponse.Validate if the designated constraints aren't met.
func (CreateContactResponseValidationError) Cause ¶
func (e CreateContactResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateContactResponseValidationError) Error ¶
func (e CreateContactResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateContactResponseValidationError) ErrorName ¶
func (e CreateContactResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateContactResponseValidationError) Field ¶
func (e CreateContactResponseValidationError) Field() string
Field function returns field value.
func (CreateContactResponseValidationError) Key ¶
func (e CreateContactResponseValidationError) Key() bool
Key function returns key value.
func (CreateContactResponseValidationError) Reason ¶
func (e CreateContactResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteContactRequest ¶
type DeleteContactRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*DeleteContactRequest) Descriptor ¶
func (*DeleteContactRequest) Descriptor() ([]byte, []int)
func (*DeleteContactRequest) GetId ¶
func (m *DeleteContactRequest) GetId() int64
func (*DeleteContactRequest) ProtoMessage ¶
func (*DeleteContactRequest) ProtoMessage()
func (*DeleteContactRequest) Reset ¶
func (m *DeleteContactRequest) Reset()
func (*DeleteContactRequest) String ¶
func (m *DeleteContactRequest) String() string
func (*DeleteContactRequest) Validate ¶
func (m *DeleteContactRequest) Validate() error
Validate checks the field values on DeleteContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteContactRequestValidationError ¶
type DeleteContactRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteContactRequestValidationError is the validation error returned by DeleteContactRequest.Validate if the designated constraints aren't met.
func (DeleteContactRequestValidationError) Cause ¶
func (e DeleteContactRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteContactRequestValidationError) Error ¶
func (e DeleteContactRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteContactRequestValidationError) ErrorName ¶
func (e DeleteContactRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteContactRequestValidationError) Field ¶
func (e DeleteContactRequestValidationError) Field() string
Field function returns field value.
func (DeleteContactRequestValidationError) Key ¶
func (e DeleteContactRequestValidationError) Key() bool
Key function returns key value.
func (DeleteContactRequestValidationError) Reason ¶
func (e DeleteContactRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteContactResponse ¶
type DeleteContactResponse struct { }
func (*DeleteContactResponse) Descriptor ¶
func (*DeleteContactResponse) Descriptor() ([]byte, []int)
func (*DeleteContactResponse) ProtoMessage ¶
func (*DeleteContactResponse) ProtoMessage()
func (*DeleteContactResponse) Reset ¶
func (m *DeleteContactResponse) Reset()
func (*DeleteContactResponse) String ¶
func (m *DeleteContactResponse) String() string
func (*DeleteContactResponse) Validate ¶
func (m *DeleteContactResponse) Validate() error
Validate checks the field values on DeleteContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteContactResponseValidationError ¶
type DeleteContactResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteContactResponseValidationError is the validation error returned by DeleteContactResponse.Validate if the designated constraints aren't met.
func (DeleteContactResponseValidationError) Cause ¶
func (e DeleteContactResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteContactResponseValidationError) Error ¶
func (e DeleteContactResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteContactResponseValidationError) ErrorName ¶
func (e DeleteContactResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteContactResponseValidationError) Field ¶
func (e DeleteContactResponseValidationError) Field() string
Field function returns field value.
func (DeleteContactResponseValidationError) Key ¶
func (e DeleteContactResponseValidationError) Key() bool
Key function returns key value.
func (DeleteContactResponseValidationError) Reason ¶
func (e DeleteContactResponseValidationError) Reason() string
Reason function returns reason value.
type ReadContactRequest ¶
type ReadContactRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
}
func (*ReadContactRequest) Descriptor ¶
func (*ReadContactRequest) Descriptor() ([]byte, []int)
func (*ReadContactRequest) GetId ¶
func (m *ReadContactRequest) GetId() int64
func (*ReadContactRequest) ProtoMessage ¶
func (*ReadContactRequest) ProtoMessage()
func (*ReadContactRequest) Reset ¶
func (m *ReadContactRequest) Reset()
func (*ReadContactRequest) String ¶
func (m *ReadContactRequest) String() string
func (*ReadContactRequest) Validate ¶
func (m *ReadContactRequest) Validate() error
Validate checks the field values on ReadContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReadContactRequestValidationError ¶
type ReadContactRequestValidationError struct {
// contains filtered or unexported fields
}
ReadContactRequestValidationError is the validation error returned by ReadContactRequest.Validate if the designated constraints aren't met.
func (ReadContactRequestValidationError) Cause ¶
func (e ReadContactRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadContactRequestValidationError) Error ¶
func (e ReadContactRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadContactRequestValidationError) ErrorName ¶
func (e ReadContactRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadContactRequestValidationError) Field ¶
func (e ReadContactRequestValidationError) Field() string
Field function returns field value.
func (ReadContactRequestValidationError) Key ¶
func (e ReadContactRequestValidationError) Key() bool
Key function returns key value.
func (ReadContactRequestValidationError) Reason ¶
func (e ReadContactRequestValidationError) Reason() string
Reason function returns reason value.
type ReadContactResponse ¶
type ReadContactResponse struct {
Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*ReadContactResponse) Descriptor ¶
func (*ReadContactResponse) Descriptor() ([]byte, []int)
func (*ReadContactResponse) GetResult ¶
func (m *ReadContactResponse) GetResult() *Contact
func (*ReadContactResponse) ProtoMessage ¶
func (*ReadContactResponse) ProtoMessage()
func (*ReadContactResponse) Reset ¶
func (m *ReadContactResponse) Reset()
func (*ReadContactResponse) String ¶
func (m *ReadContactResponse) String() string
func (*ReadContactResponse) Validate ¶
func (m *ReadContactResponse) Validate() error
Validate checks the field values on ReadContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReadContactResponseValidationError ¶
type ReadContactResponseValidationError struct {
// contains filtered or unexported fields
}
ReadContactResponseValidationError is the validation error returned by ReadContactResponse.Validate if the designated constraints aren't met.
func (ReadContactResponseValidationError) Cause ¶
func (e ReadContactResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadContactResponseValidationError) Error ¶
func (e ReadContactResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadContactResponseValidationError) ErrorName ¶
func (e ReadContactResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadContactResponseValidationError) Field ¶
func (e ReadContactResponseValidationError) Field() string
Field function returns field value.
func (ReadContactResponseValidationError) Key ¶
func (e ReadContactResponseValidationError) Key() bool
Key function returns key value.
func (ReadContactResponseValidationError) Reason ¶
func (e ReadContactResponseValidationError) Reason() string
Reason function returns reason value.
type ReverseRequest ¶
type ReverseRequest struct {
Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}
func (*ReverseRequest) Descriptor ¶
func (*ReverseRequest) Descriptor() ([]byte, []int)
func (*ReverseRequest) GetPayload ¶
func (m *ReverseRequest) GetPayload() *Contact
func (*ReverseRequest) ProtoMessage ¶
func (*ReverseRequest) ProtoMessage()
func (*ReverseRequest) Reset ¶
func (m *ReverseRequest) Reset()
func (*ReverseRequest) String ¶
func (m *ReverseRequest) String() string
func (*ReverseRequest) Validate ¶
func (m *ReverseRequest) Validate() error
Validate checks the field values on ReverseRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReverseRequestValidationError ¶
type ReverseRequestValidationError struct {
// contains filtered or unexported fields
}
ReverseRequestValidationError is the validation error returned by ReverseRequest.Validate if the designated constraints aren't met.
func (ReverseRequestValidationError) Cause ¶
func (e ReverseRequestValidationError) Cause() error
Cause function returns cause value.
func (ReverseRequestValidationError) Error ¶
func (e ReverseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReverseRequestValidationError) ErrorName ¶
func (e ReverseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReverseRequestValidationError) Field ¶
func (e ReverseRequestValidationError) Field() string
Field function returns field value.
func (ReverseRequestValidationError) Key ¶
func (e ReverseRequestValidationError) Key() bool
Key function returns key value.
func (ReverseRequestValidationError) Reason ¶
func (e ReverseRequestValidationError) Reason() string
Reason function returns reason value.
type ReverseResponse ¶
type ReverseResponse struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*ReverseResponse) Descriptor ¶
func (*ReverseResponse) Descriptor() ([]byte, []int)
func (*ReverseResponse) GetResult ¶
func (m *ReverseResponse) GetResult() string
func (*ReverseResponse) ProtoMessage ¶
func (*ReverseResponse) ProtoMessage()
func (*ReverseResponse) Reset ¶
func (m *ReverseResponse) Reset()
func (*ReverseResponse) String ¶
func (m *ReverseResponse) String() string
func (*ReverseResponse) Validate ¶
func (m *ReverseResponse) Validate() error
Validate checks the field values on ReverseResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ReverseResponseValidationError ¶
type ReverseResponseValidationError struct {
// contains filtered or unexported fields
}
ReverseResponseValidationError is the validation error returned by ReverseResponse.Validate if the designated constraints aren't met.
func (ReverseResponseValidationError) Cause ¶
func (e ReverseResponseValidationError) Cause() error
Cause function returns cause value.
func (ReverseResponseValidationError) Error ¶
func (e ReverseResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReverseResponseValidationError) ErrorName ¶
func (e ReverseResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReverseResponseValidationError) Field ¶
func (e ReverseResponseValidationError) Field() string
Field function returns field value.
func (ReverseResponseValidationError) Key ¶
func (e ReverseResponseValidationError) Key() bool
Key function returns key value.
func (ReverseResponseValidationError) Reason ¶
func (e ReverseResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateContactRequest ¶
type UpdateContactRequest struct {
Payload *Contact `protobuf:"bytes,1,opt,name=payload" json:"payload,omitempty"`
}
func (*UpdateContactRequest) Descriptor ¶
func (*UpdateContactRequest) Descriptor() ([]byte, []int)
func (*UpdateContactRequest) GetPayload ¶
func (m *UpdateContactRequest) GetPayload() *Contact
func (*UpdateContactRequest) ProtoMessage ¶
func (*UpdateContactRequest) ProtoMessage()
func (*UpdateContactRequest) Reset ¶
func (m *UpdateContactRequest) Reset()
func (*UpdateContactRequest) String ¶
func (m *UpdateContactRequest) String() string
func (*UpdateContactRequest) Validate ¶
func (m *UpdateContactRequest) Validate() error
Validate checks the field values on UpdateContactRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateContactRequestValidationError ¶
type UpdateContactRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateContactRequestValidationError is the validation error returned by UpdateContactRequest.Validate if the designated constraints aren't met.
func (UpdateContactRequestValidationError) Cause ¶
func (e UpdateContactRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateContactRequestValidationError) Error ¶
func (e UpdateContactRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateContactRequestValidationError) ErrorName ¶
func (e UpdateContactRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateContactRequestValidationError) Field ¶
func (e UpdateContactRequestValidationError) Field() string
Field function returns field value.
func (UpdateContactRequestValidationError) Key ¶
func (e UpdateContactRequestValidationError) Key() bool
Key function returns key value.
func (UpdateContactRequestValidationError) Reason ¶
func (e UpdateContactRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateContactResponse ¶
type UpdateContactResponse struct {
Result *Contact `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*UpdateContactResponse) Descriptor ¶
func (*UpdateContactResponse) Descriptor() ([]byte, []int)
func (*UpdateContactResponse) GetResult ¶
func (m *UpdateContactResponse) GetResult() *Contact
func (*UpdateContactResponse) ProtoMessage ¶
func (*UpdateContactResponse) ProtoMessage()
func (*UpdateContactResponse) Reset ¶
func (m *UpdateContactResponse) Reset()
func (*UpdateContactResponse) String ¶
func (m *UpdateContactResponse) String() string
func (*UpdateContactResponse) Validate ¶
func (m *UpdateContactResponse) Validate() error
Validate checks the field values on UpdateContactResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateContactResponseValidationError ¶
type UpdateContactResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateContactResponseValidationError is the validation error returned by UpdateContactResponse.Validate if the designated constraints aren't met.
func (UpdateContactResponseValidationError) Cause ¶
func (e UpdateContactResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateContactResponseValidationError) Error ¶
func (e UpdateContactResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateContactResponseValidationError) ErrorName ¶
func (e UpdateContactResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateContactResponseValidationError) Field ¶
func (e UpdateContactResponseValidationError) Field() string
Field function returns field value.
func (UpdateContactResponseValidationError) Key ¶
func (e UpdateContactResponseValidationError) Key() bool
Key function returns key value.
func (UpdateContactResponseValidationError) Reason ¶
func (e UpdateContactResponseValidationError) Reason() string
Reason function returns reason value.
type VersionResponse ¶
type VersionResponse struct {
Version string `protobuf:"bytes,1,opt,name=version" json:"version,omitempty"`
}
TODO: Structure your own protobuf messages. Each protocol buffer message is a small logical record of information, containing a series of name-value pairs.
func (*VersionResponse) Descriptor ¶
func (*VersionResponse) Descriptor() ([]byte, []int)
func (*VersionResponse) GetVersion ¶
func (m *VersionResponse) GetVersion() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) Reset ¶
func (m *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (m *VersionResponse) String() string
func (*VersionResponse) Validate ¶
func (m *VersionResponse) Validate() error
Validate checks the field values on VersionResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type VersionResponseValidationError ¶
type VersionResponseValidationError struct {
// contains filtered or unexported fields
}
VersionResponseValidationError is the validation error returned by VersionResponse.Validate if the designated constraints aren't met.
func (VersionResponseValidationError) Cause ¶
func (e VersionResponseValidationError) Cause() error
Cause function returns cause value.
func (VersionResponseValidationError) Error ¶
func (e VersionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VersionResponseValidationError) ErrorName ¶
func (e VersionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VersionResponseValidationError) Field ¶
func (e VersionResponseValidationError) Field() string
Field function returns field value.
func (VersionResponseValidationError) Key ¶
func (e VersionResponseValidationError) Key() bool
Key function returns key value.
func (VersionResponseValidationError) Reason ¶
func (e VersionResponseValidationError) Reason() string
Reason function returns reason value.