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 ¶
- Variables
- func AtlasValidateAnnotator(ctx context.Context, r *http.Request) metadata.MD
- func RegisterGroupsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterGroupsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GroupsClient) error
- func RegisterGroupsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterGroupsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GroupsServer) error
- func RegisterGroupsServer(s grpc.ServiceRegistrar, srv GroupsServer)
- func RegisterProfilesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterProfilesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ProfilesClient) error
- func RegisterProfilesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterProfilesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ProfilesServer) error
- func RegisterProfilesServer(s grpc.ServiceRegistrar, srv ProfilesServer)
- func RegisterUsers2Handler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsers2HandlerClient(ctx context.Context, mux *runtime.ServeMux, client Users2Client) error
- func RegisterUsers2HandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsers2HandlerServer(ctx context.Context, mux *runtime.ServeMux, server Users2Server) error
- func RegisterUsers2Server(s grpc.ServiceRegistrar, srv Users2Server)
- func RegisterUsersHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterUsersHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UsersClient) error
- func RegisterUsersHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterUsersHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UsersServer) error
- func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)
- type Address
- func (_ *Address) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetState() string
- func (x *Address) GetTags() map[string]string
- func (x *Address) GetZip() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) String() string
- type CreateUserRequest
- func (_ *CreateUserRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateUserRequest) GetPayload() *User
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- type EmptyRequest
- func (_ *EmptyRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*EmptyRequest) Descriptor() ([]byte, []int)deprecated
- func (*EmptyRequest) ProtoMessage()
- func (x *EmptyRequest) ProtoReflect() protoreflect.Message
- func (x *EmptyRequest) Reset()
- func (x *EmptyRequest) String() string
- type EmptyResponse
- func (_ *EmptyResponse) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*EmptyResponse) Descriptor() ([]byte, []int)deprecated
- func (*EmptyResponse) ProtoMessage()
- func (x *EmptyResponse) ProtoReflect() protoreflect.Message
- func (x *EmptyResponse) Reset()
- func (x *EmptyResponse) String() string
- type EmptyResponse2
- func (_ *EmptyResponse2) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*EmptyResponse2) Descriptor() ([]byte, []int)deprecated
- func (*EmptyResponse2) ProtoMessage()
- func (x *EmptyResponse2) ProtoReflect() protoreflect.Message
- func (x *EmptyResponse2) Reset()
- func (x *EmptyResponse2) String() string
- type Group
- func (_ *Group) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetId() int32
- func (x *Group) GetName() string
- func (x *Group) GetNotes() string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupsClient
- type GroupsServer
- type Profile
- func (_ *Profile) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*Profile) Descriptor() ([]byte, []int)deprecated
- func (x *Profile) GetId() int32
- func (x *Profile) GetName() string
- func (x *Profile) GetNotes() string
- func (*Profile) ProtoMessage()
- func (x *Profile) ProtoReflect() protoreflect.Message
- func (x *Profile) Reset()
- func (x *Profile) String() string
- type ProfilesClient
- type ProfilesServer
- type UnimplementedGroupsServer
- func (UnimplementedGroupsServer) Create(context.Context, *Group) (*EmptyResponse, error)
- func (UnimplementedGroupsServer) Update(context.Context, *Group) (*EmptyResponse, error)
- func (UnimplementedGroupsServer) ValidateWKT(context.Context, *anypb.Any) (*wrapperspb.DoubleValue, error)
- func (UnimplementedGroupsServer) ValidatedList(context.Context, *EmptyRequest) (*EmptyResponse, error)
- type UnimplementedProfilesServer
- type UnimplementedUsers2Server
- type UnimplementedUsersServer
- func (UnimplementedUsersServer) Create(context.Context, *CreateUserRequest) (*EmptyResponse, error)
- func (UnimplementedUsersServer) List(context.Context, *EmptyRequest) (*EmptyResponse, error)
- func (UnimplementedUsersServer) Update(context.Context, *UpdateUserRequest) (*EmptyResponse, error)
- func (UnimplementedUsersServer) UpdateExternalUser(context.Context, *User) (*EmptyResponse, error)
- func (UnimplementedUsersServer) UpdateExternalUser2(context.Context, *external.ExternalUser) (*EmptyResponse, error)
- type UnsafeGroupsServer
- type UnsafeProfilesServer
- type UnsafeUsers2Server
- type UnsafeUsersServer
- type UpdateProfileRequest
- func (_ *UpdateProfileRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*UpdateProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProfileRequest) GetPayload() *Profile
- func (*UpdateProfileRequest) ProtoMessage()
- func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProfileRequest) Reset()
- func (x *UpdateProfileRequest) String() string
- type UpdateUserRequest
- func (_ *UpdateUserRequest) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateUserRequest) GetPayload() *User
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (_ *User) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAddress() *Address
- func (x *User) GetEmptyList() []*emptypb.Empty
- func (x *User) GetExternalUser() *external.ExternalUser
- func (x *User) GetGroups() []*Group
- func (x *User) GetId() int32
- func (x *User) GetName() string
- func (x *User) GetParents() []*User_Parent
- func (x *User) GetProfile() *Profile
- func (x *User) GetSomeFriends() []*external.ExternalUser
- func (x *User) GetTimestamp() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type User2
- func (_ *User2) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*User2) Descriptor() ([]byte, []int)deprecated
- func (x *User2) GetId() int32
- func (x *User2) GetName() string
- func (*User2) ProtoMessage()
- func (x *User2) ProtoReflect() protoreflect.Message
- func (x *User2) Reset()
- func (x *User2) String() string
- type User_Parent
- func (_ *User_Parent) AtlasValidateJSON(ctx context.Context, r json.RawMessage, path string) (err error)
- func (*User_Parent) Descriptor() ([]byte, []int)deprecated
- func (x *User_Parent) GetName() string
- func (*User_Parent) ProtoMessage()
- func (x *User_Parent) ProtoReflect() protoreflect.Message
- func (x *User_Parent) Reset()
- func (x *User_Parent) String() string
- type Users2Client
- type Users2Server
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
var File_examplepb_example_multi_proto protoreflect.FileDescriptor
var File_examplepb_example_proto protoreflect.FileDescriptor
var File_examplepb_examplepb_proto protoreflect.FileDescriptor
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)
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)
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)
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 ¶
AtlasValidateAnnotator parses JSON input and validates unknown fields based on 'allow_unknown_fields' options specified in proto file.
func RegisterGroupsHandler ¶
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
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 ¶
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) GetCountry ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶ added in v0.5.0
func (x *Address) ProtoReflect() protoreflect.Message
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 ¶
AtlasValidateJSON function validates a JSON for object Group.
func (*Group) Descriptor
deprecated
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶ added in v0.5.0
func (x *Group) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) ProtoReflect ¶ added in v0.5.0
func (x *Profile) ProtoReflect() protoreflect.Message
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) Create(context.Context, *Group) (*EmptyResponse, error)
func (UnimplementedGroupsServer) Update ¶ added in v0.5.0
func (UnimplementedGroupsServer) Update(context.Context, *Group) (*EmptyResponse, error)
func (UnimplementedGroupsServer) ValidateWKT ¶ added in v0.5.0
func (UnimplementedGroupsServer) ValidateWKT(context.Context, *anypb.Any) (*wrapperspb.DoubleValue, error)
func (UnimplementedGroupsServer) ValidatedList ¶ added in v0.5.0
func (UnimplementedGroupsServer) ValidatedList(context.Context, *EmptyRequest) (*EmptyResponse, error)
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) Create(context.Context, *Profile) (*EmptyResponse, error)
func (UnimplementedProfilesServer) Update ¶ added in v0.5.0
func (UnimplementedProfilesServer) Update(context.Context, *UpdateProfileRequest) (*EmptyResponse, error)
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
func (UnimplementedUsers2Server) Create2(context.Context, *User2) (*EmptyResponse2, error)
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) Create(context.Context, *CreateUserRequest) (*EmptyResponse, error)
func (UnimplementedUsersServer) List ¶ added in v0.5.0
func (UnimplementedUsersServer) List(context.Context, *EmptyRequest) (*EmptyResponse, error)
func (UnimplementedUsersServer) Update ¶ added in v0.5.0
func (UnimplementedUsersServer) Update(context.Context, *UpdateUserRequest) (*EmptyResponse, error)
func (UnimplementedUsersServer) UpdateExternalUser ¶ added in v0.5.0
func (UnimplementedUsersServer) UpdateExternalUser(context.Context, *User) (*EmptyResponse, error)
func (UnimplementedUsersServer) UpdateExternalUser2 ¶ added in v0.5.0
func (UnimplementedUsersServer) UpdateExternalUser2(context.Context, *external.ExternalUser) (*EmptyResponse, error)
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 ¶
AtlasValidateJSON function validates a JSON for object User.
func (*User) Descriptor
deprecated
func (*User) GetAddress ¶
func (*User) GetEmptyList ¶ added in v0.4.0
func (*User) GetExternalUser ¶
func (x *User) GetExternalUser() *external.ExternalUser
func (*User) GetParents ¶
func (x *User) GetParents() []*User_Parent
func (*User) GetProfile ¶
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
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
AtlasValidateJSON function validates a JSON for object User2.
func (*User2) Descriptor
deprecated
added in
v0.4.0
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
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