examplepb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package examplepb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package examplepb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_examplepb_example_multi_proto protoreflect.FileDescriptor
View Source
var File_examplepb_example_proto protoreflect.FileDescriptor
View Source
var File_examplepb_examplepb_proto protoreflect.FileDescriptor
View Source
var Groups_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "examples.foo.Groups",
	HandlerType: (*GroupsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Groups_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Groups_Update_Handler,
		},
		{
			MethodName: "ValidatedList",
			Handler:    _Groups_ValidatedList_Handler,
		},
		{
			MethodName: "ValidateWKT",
			Handler:    _Groups_ValidateWKT_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examplepb/example.proto",
}

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

View Source
var Profiles_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "examples.foo.Profiles",
	HandlerType: (*ProfilesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Profiles_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Profiles_Update_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examplepb/example.proto",
}

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

View Source
var Users2_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "examples.foo.Users2",
	HandlerType: (*Users2Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create2",
			Handler:    _Users2_Create2_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examplepb/example_multi.proto",
}

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

View Source
var Users_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "examples.foo.Users",
	HandlerType: (*UsersServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Users_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Users_Update_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Users_List_Handler,
		},
		{
			MethodName: "UpdateExternalUser",
			Handler:    _Users_UpdateExternalUser_Handler,
		},
		{
			MethodName: "UpdateExternalUser2",
			Handler:    _Users_UpdateExternalUser2_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "examplepb/example.proto",
}

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

Functions

func AtlasValidateAnnotator

func AtlasValidateAnnotator(ctx context.Context, r *http.Request) metadata.MD

AtlasValidateAnnotator parses JSON input and validates unknown fields based on 'allow_unknown_fields' options specified in proto file.

func RegisterGroupsHandler

func RegisterGroupsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGroupsHandler registers the http handlers for service Groups to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterGroupsHandlerClient

func RegisterGroupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GroupsClient) error

RegisterGroupsHandlerClient registers the http handlers for service Groups to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GroupsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GroupsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GroupsClient" to call the correct interceptors.

func RegisterGroupsHandlerFromEndpoint

func RegisterGroupsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterGroupsHandlerFromEndpoint is same as RegisterGroupsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterGroupsHandlerServer added in v0.5.0

func RegisterGroupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GroupsServer) error

RegisterGroupsHandlerServer registers the http handlers for service Groups to "mux". UnaryRPC :call GroupsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGroupsHandlerFromEndpoint instead.

func RegisterGroupsServer

func RegisterGroupsServer(s grpc.ServiceRegistrar, srv GroupsServer)

func RegisterProfilesHandler

func RegisterProfilesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterProfilesHandler registers the http handlers for service Profiles to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterProfilesHandlerClient

func RegisterProfilesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilesClient) error

RegisterProfilesHandlerClient registers the http handlers for service Profiles to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ProfilesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ProfilesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ProfilesClient" to call the correct interceptors.

func RegisterProfilesHandlerFromEndpoint

func RegisterProfilesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterProfilesHandlerFromEndpoint is same as RegisterProfilesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterProfilesHandlerServer added in v0.5.0

func RegisterProfilesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfilesServer) error

RegisterProfilesHandlerServer registers the http handlers for service Profiles to "mux". UnaryRPC :call ProfilesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterProfilesHandlerFromEndpoint instead.

func RegisterProfilesServer

func RegisterProfilesServer(s grpc.ServiceRegistrar, srv ProfilesServer)

func RegisterUsers2Handler added in v0.4.0

func RegisterUsers2Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUsers2Handler registers the http handlers for service Users2 to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUsers2HandlerClient added in v0.4.0

func RegisterUsers2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client Users2Client) error

RegisterUsers2HandlerClient registers the http handlers for service Users2 to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "Users2Client". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "Users2Client" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "Users2Client" to call the correct interceptors.

func RegisterUsers2HandlerFromEndpoint added in v0.4.0

func RegisterUsers2HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUsers2HandlerFromEndpoint is same as RegisterUsers2Handler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUsers2HandlerServer added in v0.5.0

func RegisterUsers2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server Users2Server) error

RegisterUsers2HandlerServer registers the http handlers for service Users2 to "mux". UnaryRPC :call Users2Server directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsers2HandlerFromEndpoint instead.

func RegisterUsers2Server added in v0.4.0

func RegisterUsers2Server(s grpc.ServiceRegistrar, srv Users2Server)

func RegisterUsersHandler

func RegisterUsersHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUsersHandler registers the http handlers for service Users to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUsersHandlerClient

func RegisterUsersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersClient) error

RegisterUsersHandlerClient registers the http handlers for service Users to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UsersClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UsersClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UsersClient" to call the correct interceptors.

func RegisterUsersHandlerFromEndpoint

func RegisterUsersHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUsersHandlerFromEndpoint is same as RegisterUsersHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUsersHandlerServer added in v0.5.0

func RegisterUsersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersServer) error

RegisterUsersHandlerServer registers the http handlers for service Users to "mux". UnaryRPC :call UsersServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUsersHandlerFromEndpoint instead.

func RegisterUsersServer

func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)

Types

type Address

type Address struct {
	Country string            `protobuf:"bytes,1,opt,name=country,proto3" json:"country,omitempty"`
	State   string            `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	City    string            `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	Zip     string            `protobuf:"bytes,4,opt,name=zip,proto3" json:"zip,omitempty"`
	Tags    map[string]string `` /* 150-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Address) AtlasValidateJSON

func (_ *Address) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object Address.

func (*Address) Descriptor deprecated

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

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetTags added in v0.1.2

func (x *Address) GetTags() map[string]string

func (*Address) GetZip

func (x *Address) GetZip() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect added in v0.5.0

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

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type CreateUserRequest

type CreateUserRequest struct {
	Payload *User `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateUserRequest) AtlasValidateJSON

func (_ *CreateUserRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object CreateUserRequest.

func (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetPayload

func (x *CreateUserRequest) GetPayload() *User

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect added in v0.5.0

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type EmptyRequest

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

func (*EmptyRequest) AtlasValidateJSON

func (_ *EmptyRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object EmptyRequest.

func (*EmptyRequest) Descriptor deprecated

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

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect added in v0.5.0

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

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

type EmptyResponse

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

func (*EmptyResponse) AtlasValidateJSON

func (_ *EmptyResponse) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object EmptyResponse.

func (*EmptyResponse) Descriptor deprecated

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

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect added in v0.5.0

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

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type EmptyResponse2 added in v0.4.0

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

func (*EmptyResponse2) AtlasValidateJSON added in v0.4.0

func (_ *EmptyResponse2) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object EmptyResponse2.

func (*EmptyResponse2) Descriptor deprecated added in v0.4.0

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

Deprecated: Use EmptyResponse2.ProtoReflect.Descriptor instead.

func (*EmptyResponse2) ProtoMessage added in v0.4.0

func (*EmptyResponse2) ProtoMessage()

func (*EmptyResponse2) ProtoReflect added in v0.5.0

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

func (*EmptyResponse2) Reset added in v0.4.0

func (x *EmptyResponse2) Reset()

func (*EmptyResponse2) String added in v0.4.0

func (x *EmptyResponse2) String() string

type Group

type Group struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*Group) AtlasValidateJSON

func (_ *Group) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object Group.

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetId

func (x *Group) GetId() int32

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetNotes

func (x *Group) GetNotes() string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect added in v0.5.0

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

type GroupsClient

type GroupsClient interface {
	Create(ctx context.Context, in *Group, opts ...grpc.CallOption) (*EmptyResponse, error)
	Update(ctx context.Context, in *Group, opts ...grpc.CallOption) (*EmptyResponse, error)
	ValidatedList(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	ValidateWKT(ctx context.Context, in *anypb.Any, opts ...grpc.CallOption) (*wrapperspb.DoubleValue, error)
}

GroupsClient is the client API for Groups 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.

func NewGroupsClient

func NewGroupsClient(cc grpc.ClientConnInterface) GroupsClient

type GroupsServer

type GroupsServer interface {
	Create(context.Context, *Group) (*EmptyResponse, error)
	Update(context.Context, *Group) (*EmptyResponse, error)
	ValidatedList(context.Context, *EmptyRequest) (*EmptyResponse, error)
	ValidateWKT(context.Context, *anypb.Any) (*wrapperspb.DoubleValue, error)
	// contains filtered or unexported methods
}

GroupsServer is the server API for Groups service. All implementations must embed UnimplementedGroupsServer for forward compatibility

type Profile

type Profile struct {
	Id    int32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Notes string `protobuf:"bytes,3,opt,name=notes,proto3" json:"notes,omitempty"`
	// contains filtered or unexported fields
}

func (*Profile) AtlasValidateJSON

func (_ *Profile) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object Profile.

func (*Profile) Descriptor deprecated

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

Deprecated: Use Profile.ProtoReflect.Descriptor instead.

func (*Profile) GetId

func (x *Profile) GetId() int32

func (*Profile) GetName

func (x *Profile) GetName() string

func (*Profile) GetNotes

func (x *Profile) GetNotes() string

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) ProtoReflect added in v0.5.0

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

func (*Profile) Reset

func (x *Profile) Reset()

func (*Profile) String

func (x *Profile) String() string

type ProfilesClient

type ProfilesClient interface {
	Create(ctx context.Context, in *Profile, opts ...grpc.CallOption) (*EmptyResponse, error)
	Update(ctx context.Context, in *UpdateProfileRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

ProfilesClient is the client API for Profiles 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.

func NewProfilesClient

func NewProfilesClient(cc grpc.ClientConnInterface) ProfilesClient

type ProfilesServer

type ProfilesServer interface {
	Create(context.Context, *Profile) (*EmptyResponse, error)
	Update(context.Context, *UpdateProfileRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

ProfilesServer is the server API for Profiles service. All implementations must embed UnimplementedProfilesServer for forward compatibility

type UnimplementedGroupsServer added in v0.5.0

type UnimplementedGroupsServer struct {
}

UnimplementedGroupsServer must be embedded to have forward compatible implementations.

func (UnimplementedGroupsServer) Create added in v0.5.0

func (UnimplementedGroupsServer) Update added in v0.5.0

func (UnimplementedGroupsServer) ValidateWKT added in v0.5.0

func (UnimplementedGroupsServer) ValidatedList added in v0.5.0

type UnimplementedProfilesServer added in v0.5.0

type UnimplementedProfilesServer struct {
}

UnimplementedProfilesServer must be embedded to have forward compatible implementations.

func (UnimplementedProfilesServer) Create added in v0.5.0

func (UnimplementedProfilesServer) Update added in v0.5.0

type UnimplementedUsers2Server added in v0.5.0

type UnimplementedUsers2Server struct {
}

UnimplementedUsers2Server must be embedded to have forward compatible implementations.

func (UnimplementedUsers2Server) Create2 added in v0.5.0

type UnimplementedUsersServer added in v0.5.0

type UnimplementedUsersServer struct {
}

UnimplementedUsersServer must be embedded to have forward compatible implementations.

func (UnimplementedUsersServer) Create added in v0.5.0

func (UnimplementedUsersServer) List added in v0.5.0

func (UnimplementedUsersServer) Update added in v0.5.0

func (UnimplementedUsersServer) UpdateExternalUser added in v0.5.0

func (UnimplementedUsersServer) UpdateExternalUser(context.Context, *User) (*EmptyResponse, error)

func (UnimplementedUsersServer) UpdateExternalUser2 added in v0.5.0

type UnsafeGroupsServer added in v1.0.0

type UnsafeGroupsServer interface {
	// contains filtered or unexported methods
}

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

type UnsafeProfilesServer added in v1.0.0

type UnsafeProfilesServer interface {
	// contains filtered or unexported methods
}

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

type UnsafeUsers2Server added in v1.0.0

type UnsafeUsers2Server interface {
	// contains filtered or unexported methods
}

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

type UnsafeUsersServer added in v1.0.0

type UnsafeUsersServer interface {
	// contains filtered or unexported methods
}

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

type UpdateProfileRequest

type UpdateProfileRequest struct {
	Payload *Profile `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProfileRequest) AtlasValidateJSON

func (_ *UpdateProfileRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object UpdateProfileRequest.

func (*UpdateProfileRequest) Descriptor deprecated

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

Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.

func (*UpdateProfileRequest) GetPayload

func (x *UpdateProfileRequest) GetPayload() *Profile

func (*UpdateProfileRequest) ProtoMessage

func (*UpdateProfileRequest) ProtoMessage()

func (*UpdateProfileRequest) ProtoReflect added in v0.5.0

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

func (*UpdateProfileRequest) Reset

func (x *UpdateProfileRequest) Reset()

func (*UpdateProfileRequest) String

func (x *UpdateProfileRequest) String() string

type UpdateUserRequest

type UpdateUserRequest struct {
	Payload *User `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) AtlasValidateJSON

func (_ *UpdateUserRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object UpdateUserRequest.

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetPayload

func (x *UpdateUserRequest) GetPayload() *User

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect added in v0.5.0

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type User

type User struct {
	Id           int32                    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string                   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Profile      *Profile                 `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"`
	Address      *Address                 `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Groups       []*Group                 `protobuf:"bytes,5,rep,name=groups,proto3" json:"groups,omitempty"`
	Parents      []*User_Parent           `protobuf:"bytes,6,rep,name=parents,proto3" json:"parents,omitempty"`
	ExternalUser *external.ExternalUser   `protobuf:"bytes,7,opt,name=external_user,json=externalUser,proto3" json:"external_user,omitempty"`
	EmptyList    []*emptypb.Empty         `protobuf:"bytes,8,rep,name=empty_list,json=emptyList,proto3" json:"empty_list,omitempty"`
	Timestamp    *timestamppb.Timestamp   `protobuf:"bytes,9,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	SomeFriends  []*external.ExternalUser `protobuf:"bytes,10,rep,name=some_friends,json=someFriends,proto3" json:"some_friends,omitempty"`
	// contains filtered or unexported fields
}

func (*User) AtlasValidateJSON

func (_ *User) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object User.

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAddress

func (x *User) GetAddress() *Address

func (*User) GetEmptyList added in v0.4.0

func (x *User) GetEmptyList() []*emptypb.Empty

func (*User) GetExternalUser

func (x *User) GetExternalUser() *external.ExternalUser

func (*User) GetGroups

func (x *User) GetGroups() []*Group

func (*User) GetId

func (x *User) GetId() int32

func (*User) GetName

func (x *User) GetName() string

func (*User) GetParents

func (x *User) GetParents() []*User_Parent

func (*User) GetProfile

func (x *User) GetProfile() *Profile

func (*User) GetSomeFriends added in v1.0.1

func (x *User) GetSomeFriends() []*external.ExternalUser

func (*User) GetTimestamp added in v0.4.0

func (x *User) GetTimestamp() *timestamppb.Timestamp

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect added in v0.5.0

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type User2 added in v0.4.0

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

func (*User2) AtlasValidateJSON added in v0.4.0

func (_ *User2) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object User2.

func (*User2) Descriptor deprecated added in v0.4.0

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

Deprecated: Use User2.ProtoReflect.Descriptor instead.

func (*User2) GetId added in v0.4.0

func (x *User2) GetId() int32

func (*User2) GetName added in v0.4.0

func (x *User2) GetName() string

func (*User2) ProtoMessage added in v0.4.0

func (*User2) ProtoMessage()

func (*User2) ProtoReflect added in v0.5.0

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

func (*User2) Reset added in v0.4.0

func (x *User2) Reset()

func (*User2) String added in v0.4.0

func (x *User2) String() string

type User_Parent

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

func (*User_Parent) AtlasValidateJSON

func (_ *User_Parent) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)

AtlasValidateJSON function validates a JSON for object User_Parent.

func (*User_Parent) Descriptor deprecated

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

Deprecated: Use User_Parent.ProtoReflect.Descriptor instead.

func (*User_Parent) GetName

func (x *User_Parent) GetName() string

func (*User_Parent) ProtoMessage

func (*User_Parent) ProtoMessage()

func (*User_Parent) ProtoReflect added in v0.5.0

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

func (*User_Parent) Reset

func (x *User_Parent) Reset()

func (*User_Parent) String

func (x *User_Parent) String() string

type Users2Client added in v0.4.0

type Users2Client interface {
	Create2(ctx context.Context, in *User2, opts ...grpc.CallOption) (*EmptyResponse2, error)
}

Users2Client is the client API for Users2 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.

func NewUsers2Client added in v0.4.0

func NewUsers2Client(cc grpc.ClientConnInterface) Users2Client

type Users2Server added in v0.4.0

type Users2Server interface {
	Create2(context.Context, *User2) (*EmptyResponse2, error)
	// contains filtered or unexported methods
}

Users2Server is the server API for Users2 service. All implementations must embed UnimplementedUsers2Server for forward compatibility

type UsersClient

type UsersClient interface {
	Create(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	Update(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	List(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	UpdateExternalUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*EmptyResponse, error)
	UpdateExternalUser2(ctx context.Context, in *external.ExternalUser, opts ...grpc.CallOption) (*EmptyResponse, error)
}

UsersClient is the client API for Users 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.

func NewUsersClient

func NewUsersClient(cc grpc.ClientConnInterface) UsersClient

type UsersServer

type UsersServer interface {
	Create(context.Context, *CreateUserRequest) (*EmptyResponse, error)
	Update(context.Context, *UpdateUserRequest) (*EmptyResponse, error)
	List(context.Context, *EmptyRequest) (*EmptyResponse, error)
	UpdateExternalUser(context.Context, *User) (*EmptyResponse, error)
	UpdateExternalUser2(context.Context, *external.ExternalUser) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility

Jump to

Keyboard shortcuts

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