Documentation
¶
Index ¶
- Variables
- func RegisterOdinServer(s grpc.ServiceRegistrar, srv OdinServer)
- type AuditRequest
- func (*AuditRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuditRequest) GetChanges() *Changes
- func (x *AuditRequest) GetSystem() string
- func (x *AuditRequest) GetTimestamp() *timestamppb.Timestamp
- func (x *AuditRequest) GetUser() *User
- func (*AuditRequest) ProtoMessage()
- func (x *AuditRequest) ProtoReflect() protoreflect.Message
- func (x *AuditRequest) Reset()
- func (x *AuditRequest) String() string
- type Changes
- func (*Changes) Descriptor() ([]byte, []int)deprecated
- func (x *Changes) GetDescription() string
- func (x *Changes) GetEntity() string
- func (x *Changes) GetKind() Changes_Kind
- func (x *Changes) GetValues() map[string]string
- func (*Changes) ProtoMessage()
- func (x *Changes) ProtoReflect() protoreflect.Message
- func (x *Changes) Reset()
- func (x *Changes) String() string
- type Changes_Kind
- func (Changes_Kind) Descriptor() protoreflect.EnumDescriptor
- func (x Changes_Kind) Enum() *Changes_Kind
- func (Changes_Kind) EnumDescriptor() ([]byte, []int)deprecated
- func (x Changes_Kind) Number() protoreflect.EnumNumber
- func (x Changes_Kind) String() string
- func (Changes_Kind) Type() protoreflect.EnumType
- type OdinClient
- type OdinServer
- type UnimplementedOdinServer
- type UnsafeOdinServer
- type User
Constants ¶
This section is empty.
Variables ¶
var ( Changes_Kind_name = map[int32]string{ 0: "CREATE", 1: "UPDATE", 2: "DELETE", } Changes_Kind_value = map[string]int32{ "CREATE": 0, "UPDATE": 1, "DELETE": 2, } )
Enum value maps for Changes_Kind.
var File_odin_proto protoreflect.FileDescriptor
var Odin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "odin.Odin", HandlerType: (*OdinServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Audit", Handler: _Odin_Audit_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "odin.proto", }
Odin_ServiceDesc is the grpc.ServiceDesc for Odin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOdinServer ¶
func RegisterOdinServer(s grpc.ServiceRegistrar, srv OdinServer)
Types ¶
type AuditRequest ¶
type AuditRequest struct { System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` User *User `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Changes *Changes `protobuf:"bytes,4,opt,name=changes,proto3" json:"changes,omitempty"` // contains filtered or unexported fields }
func (*AuditRequest) Descriptor
deprecated
func (*AuditRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuditRequest.ProtoReflect.Descriptor instead.
func (*AuditRequest) GetChanges ¶
func (x *AuditRequest) GetChanges() *Changes
func (*AuditRequest) GetSystem ¶
func (x *AuditRequest) GetSystem() string
func (*AuditRequest) GetTimestamp ¶
func (x *AuditRequest) GetTimestamp() *timestamppb.Timestamp
func (*AuditRequest) GetUser ¶
func (x *AuditRequest) GetUser() *User
func (*AuditRequest) ProtoMessage ¶
func (*AuditRequest) ProtoMessage()
func (*AuditRequest) ProtoReflect ¶
func (x *AuditRequest) ProtoReflect() protoreflect.Message
func (*AuditRequest) Reset ¶
func (x *AuditRequest) Reset()
func (*AuditRequest) String ¶
func (x *AuditRequest) String() string
type Changes ¶
type Changes struct { Entity string `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Kind Changes_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=odin.Changes_Kind" json:"kind,omitempty"` Values map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Changes) Descriptor
deprecated
func (*Changes) GetDescription ¶
func (*Changes) GetKind ¶
func (x *Changes) GetKind() Changes_Kind
func (*Changes) ProtoMessage ¶
func (*Changes) ProtoMessage()
func (*Changes) ProtoReflect ¶
func (x *Changes) ProtoReflect() protoreflect.Message
type Changes_Kind ¶
type Changes_Kind int32
const ( Changes_CREATE Changes_Kind = 0 Changes_UPDATE Changes_Kind = 1 Changes_DELETE Changes_Kind = 2 )
func (Changes_Kind) Descriptor ¶
func (Changes_Kind) Descriptor() protoreflect.EnumDescriptor
func (Changes_Kind) Enum ¶
func (x Changes_Kind) Enum() *Changes_Kind
func (Changes_Kind) EnumDescriptor
deprecated
func (Changes_Kind) EnumDescriptor() ([]byte, []int)
Deprecated: Use Changes_Kind.Descriptor instead.
func (Changes_Kind) Number ¶
func (x Changes_Kind) Number() protoreflect.EnumNumber
func (Changes_Kind) String ¶
func (x Changes_Kind) String() string
func (Changes_Kind) Type ¶
func (Changes_Kind) Type() protoreflect.EnumType
type OdinClient ¶
type OdinClient interface {
Audit(ctx context.Context, in *AuditRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
OdinClient is the client API for Odin 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 NewOdinClient ¶
func NewOdinClient(cc grpc.ClientConnInterface) OdinClient
type OdinServer ¶
type OdinServer interface { Audit(context.Context, *AuditRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
OdinServer is the server API for Odin service. All implementations must embed UnimplementedOdinServer for forward compatibility
type UnimplementedOdinServer ¶
type UnimplementedOdinServer struct { }
UnimplementedOdinServer must be embedded to have forward compatible implementations.
func (UnimplementedOdinServer) Audit ¶
func (UnimplementedOdinServer) Audit(context.Context, *AuditRequest) (*emptypb.Empty, error)
type UnsafeOdinServer ¶
type UnsafeOdinServer interface {
// contains filtered or unexported methods
}
UnsafeOdinServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OdinServer will result in compilation errors.
type User ¶
type User struct { Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message