private

package
v0.0.0-...-d095f68 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConverterName = "example.private.Converter"
	ValidatorName = "example.private.Validator"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchRequestMutator

type BatchRequestMutator func(*privatepb.BatchRequest)

func SetBatchRequest_Creates

func SetBatchRequest_Creates(value []*privatepb.CreateRequest) BatchRequestMutator

type CreateRequestMutator

type CreateRequestMutator func(*privatepb.CreateRequest)

func SetCreateRequest_Age

func SetCreateRequest_Age(value int64) CreateRequestMutator

func SetCreateRequest_Employment

func SetCreateRequest_Employment(value privatepb.Person_Employment) CreateRequestMutator

func SetCreateRequest_FirstName

func SetCreateRequest_FirstName(value string) CreateRequestMutator

func SetCreateRequest_FullName

func SetCreateRequest_FullName(value string) CreateRequestMutator

func SetCreateRequest_Hobby

func SetCreateRequest_Hobby(value *privatepb.Hobby) CreateRequestMutator

func SetCreateRequest_Id

func SetCreateRequest_Id(value string) CreateRequestMutator

func SetCreateRequest_LastName

func SetCreateRequest_LastName(value string) CreateRequestMutator

type DeleteRequestMutator

type DeleteRequestMutator func(*privatepb.DeleteRequest)

func SetDeleteRequest_Id

func SetDeleteRequest_Id(value string) DeleteRequestMutator

type FetchRequestMutator

type FetchRequestMutator func(*privatepb.FetchRequest)

func SetFetchRequest_Id

func SetFetchRequest_Id(value string) FetchRequestMutator

type ListRequestMutator

type ListRequestMutator func(*privatepb.ListRequest)

type PingRequestMutator

type PingRequestMutator func(*privatepb.PingRequest)

type Service

type Service struct {
	Validator
	Impl privatepb.PeopleServer
}

func (*Service) Batch

func (*Service) Create

func (*Service) Delete

func (*Service) Fetch

func (*Service) List

func (*Service) Ping

func (*Service) Update

type UpdateRequestMutator

type UpdateRequestMutator func(*privatepb.UpdateRequest)

func SetUpdateRequest_Id

func SetUpdateRequest_Id(value string) UpdateRequestMutator

func SetUpdateRequest_Person

func SetUpdateRequest_Person(value *privatepb.Person) UpdateRequestMutator

type Validator

type Validator interface {
	Name() string
	ValidatePerson(*privatepb.Person) error
	ByPerson(interface{}) error
	ValidateHobby(*privatepb.Hobby) error
	ByHobby(interface{}) error
	ValidateCoding(*privatepb.Coding) error
	ByCoding(interface{}) error
	ValidateReading(*privatepb.Reading) error
	ByReading(interface{}) error
	ValidateCycling(*privatepb.Cycling) error
	ByCycling(interface{}) error
	ValidateCreateRequest(*privatepb.CreateRequest) error
	ByCreateRequest(interface{}) error
	ValidateCreateResponse(*privatepb.CreateResponse) error
	ByCreateResponse(interface{}) error
	ValidateFetchRequest(*privatepb.FetchRequest) error
	ByFetchRequest(interface{}) error
	ValidateFetchResponse(*privatepb.FetchResponse) error
	ByFetchResponse(interface{}) error
	ValidateDeleteRequest(*privatepb.DeleteRequest) error
	ByDeleteRequest(interface{}) error
	ValidateDeleteResponse(*privatepb.DeleteResponse) error
	ByDeleteResponse(interface{}) error
	ValidateListRequest(*privatepb.ListRequest) error
	ByListRequest(interface{}) error
	ValidateListResponse(*privatepb.ListResponse) error
	ByListResponse(interface{}) error
	ValidateUpdateRequest(*privatepb.UpdateRequest) error
	ByUpdateRequest(interface{}) error
	ValidateUpdateResponse(*privatepb.UpdateResponse) error
	ByUpdateResponse(interface{}) error
	ValidateBatchRequest(*privatepb.BatchRequest) error
	ByBatchRequest(interface{}) error
	ValidateBatchResponse(*privatepb.BatchResponse) error
	ByBatchResponse(interface{}) error
	ValidatePingRequest(*privatepb.PingRequest) error
	ByPingRequest(interface{}) error
	ValidatePingResponse(*privatepb.PingResponse) error
	ByPingResponse(interface{}) error
	ValidateExternalTimestamp(*exttimestamppb.Timestamp) error
	ByExternalTimestamp(interface{}) error
}

func NewValidator

func NewValidator() Validator

Jump to

Keyboard shortcuts

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