pluginpb

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Auth_Info_FullMethodName         = "/osctf.plugin.v1.Auth/Info"
	Auth_Authenticate_FullMethodName = "/osctf.plugin.v1.Auth/Authenticate"
	Auth_Begin_FullMethodName        = "/osctf.plugin.v1.Auth/Begin"
	Auth_Complete_FullMethodName     = "/osctf.plugin.v1.Auth/Complete"
)
View Source
const (
	Scoring_Info_FullMethodName  = "/osctf.plugin.v1.Scoring/Info"
	Scoring_Value_FullMethodName = "/osctf.plugin.v1.Scoring/Value"
)
View Source
const (
	Notification_Info_FullMethodName          = "/osctf.plugin.v1.Notification/Info"
	Notification_Subscriptions_FullMethodName = "/osctf.plugin.v1.Notification/Subscriptions"
	Notification_Notify_FullMethodName        = "/osctf.plugin.v1.Notification/Notify"
)
View Source
const (
	ChallengeType_Info_FullMethodName           = "/osctf.plugin.v1.ChallengeType/Info"
	ChallengeType_ValidateConfig_FullMethodName = "/osctf.plugin.v1.ChallengeType/ValidateConfig"
	ChallengeType_CheckFlag_FullMethodName      = "/osctf.plugin.v1.ChallengeType/CheckFlag"
)

Variables

View Source
var (
	PluginType_name = map[int32]string{
		0: "PLUGIN_TYPE_UNSPECIFIED",
		1: "PLUGIN_TYPE_AUTH",
		2: "PLUGIN_TYPE_SCORING",
		3: "PLUGIN_TYPE_NOTIFICATION",
		4: "PLUGIN_TYPE_CHALLENGE_TYPE",
	}
	PluginType_value = map[string]int32{
		"PLUGIN_TYPE_UNSPECIFIED":    0,
		"PLUGIN_TYPE_AUTH":           1,
		"PLUGIN_TYPE_SCORING":        2,
		"PLUGIN_TYPE_NOTIFICATION":   3,
		"PLUGIN_TYPE_CHALLENGE_TYPE": 4,
	}
)

Enum value maps for PluginType.

View Source
var Auth_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "osctf.plugin.v1.Auth",
	HandlerType: (*AuthServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _Auth_Info_Handler,
		},
		{
			MethodName: "Authenticate",
			Handler:    _Auth_Authenticate_Handler,
		},
		{
			MethodName: "Begin",
			Handler:    _Auth_Begin_Handler,
		},
		{
			MethodName: "Complete",
			Handler:    _Auth_Complete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

Auth_ServiceDesc is the grpc.ServiceDesc for Auth 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 ChallengeType_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "osctf.plugin.v1.ChallengeType",
	HandlerType: (*ChallengeTypeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _ChallengeType_Info_Handler,
		},
		{
			MethodName: "ValidateConfig",
			Handler:    _ChallengeType_ValidateConfig_Handler,
		},
		{
			MethodName: "CheckFlag",
			Handler:    _ChallengeType_CheckFlag_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

ChallengeType_ServiceDesc is the grpc.ServiceDesc for ChallengeType 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 File_plugin_proto protoreflect.FileDescriptor
View Source
var Notification_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "osctf.plugin.v1.Notification",
	HandlerType: (*NotificationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _Notification_Info_Handler,
		},
		{
			MethodName: "Subscriptions",
			Handler:    _Notification_Subscriptions_Handler,
		},
		{
			MethodName: "Notify",
			Handler:    _Notification_Notify_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

Notification_ServiceDesc is the grpc.ServiceDesc for Notification 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 Scoring_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "osctf.plugin.v1.Scoring",
	HandlerType: (*ScoringServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _Scoring_Info_Handler,
		},
		{
			MethodName: "Value",
			Handler:    _Scoring_Value_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "plugin.proto",
}

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

Functions

func RegisterAuthServer

func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)

func RegisterChallengeTypeServer

func RegisterChallengeTypeServer(s grpc.ServiceRegistrar, srv ChallengeTypeServer)

func RegisterNotificationServer

func RegisterNotificationServer(s grpc.ServiceRegistrar, srv NotificationServer)

func RegisterScoringServer

func RegisterScoringServer(s grpc.ServiceRegistrar, srv ScoringServer)

Types

type AuthClient

type AuthClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*Identity, error)
	Begin(ctx context.Context, in *BeginRequest, opts ...grpc.CallOption) (*BeginResponse, error)
	Complete(ctx context.Context, in *CompleteRequest, opts ...grpc.CallOption) (*Identity, error)
}

AuthClient is the client API for Auth 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.

------------------------------------------------------------------ Auth

func NewAuthClient

func NewAuthClient(cc grpc.ClientConnInterface) AuthClient

type AuthServer

type AuthServer interface {
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	Authenticate(context.Context, *AuthenticateRequest) (*Identity, error)
	Begin(context.Context, *BeginRequest) (*BeginResponse, error)
	Complete(context.Context, *CompleteRequest) (*Identity, error)
	// contains filtered or unexported methods
}

AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility.

------------------------------------------------------------------ Auth

type AuthenticateRequest

type AuthenticateRequest struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// Plaintext credential the user submitted FOR THIS PROVIDER (password capability only).
	// Never the OSCTF password, a hash, or a token. See the trust model.
	Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthenticateRequest) Descriptor deprecated

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

Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.

func (*AuthenticateRequest) GetIdentifier

func (x *AuthenticateRequest) GetIdentifier() string

func (*AuthenticateRequest) GetSecret

func (x *AuthenticateRequest) GetSecret() string

func (*AuthenticateRequest) ProtoMessage

func (*AuthenticateRequest) ProtoMessage()

func (*AuthenticateRequest) ProtoReflect

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

func (*AuthenticateRequest) Reset

func (x *AuthenticateRequest) Reset()

func (*AuthenticateRequest) String

func (x *AuthenticateRequest) String() string

type BeginRequest

type BeginRequest struct {
	RedirectUri string `protobuf:"bytes,1,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` // host's callback URL
	// The CSRF state the HOST minted for this login. The plugin MUST use it verbatim as the
	// authorize URL's `state` parameter, so the value the identity provider echoes back is the
	// one the host can verify. The host checks the returned URL and refuses a login whose state
	// is missing or different — a provider-chosen state would put CSRF protection inside the
	// component the auth return-path contract says not to trust.
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*BeginRequest) Descriptor deprecated

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

Deprecated: Use BeginRequest.ProtoReflect.Descriptor instead.

func (*BeginRequest) GetRedirectUri

func (x *BeginRequest) GetRedirectUri() string

func (*BeginRequest) GetState

func (x *BeginRequest) GetState() string

func (*BeginRequest) ProtoMessage

func (*BeginRequest) ProtoMessage()

func (*BeginRequest) ProtoReflect

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

func (*BeginRequest) Reset

func (x *BeginRequest) Reset()

func (*BeginRequest) String

func (x *BeginRequest) String() string

type BeginResponse

type BeginResponse struct {
	AuthorizeUrl string `protobuf:"bytes,1,opt,name=authorize_url,json=authorizeUrl,proto3" json:"authorize_url,omitempty"`
	// The plugin's OWN opaque round-trip data (e.g. a PKCE verifier and nonce). The host stores
	// it with the login and hands it back to Complete; it is never the CSRF state and never
	// reaches the browser or the identity provider.
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*BeginResponse) Descriptor deprecated

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

Deprecated: Use BeginResponse.ProtoReflect.Descriptor instead.

func (*BeginResponse) GetAuthorizeUrl

func (x *BeginResponse) GetAuthorizeUrl() string

func (*BeginResponse) GetState

func (x *BeginResponse) GetState() string

func (*BeginResponse) ProtoMessage

func (*BeginResponse) ProtoMessage()

func (*BeginResponse) ProtoReflect

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

func (*BeginResponse) Reset

func (x *BeginResponse) Reset()

func (*BeginResponse) String

func (x *BeginResponse) String() string

type ChallengeTypeClient

type ChallengeTypeClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	ValidateConfig(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error)
	CheckFlag(ctx context.Context, in *CheckRequest, opts ...grpc.CallOption) (*CheckResponse, error)
}

ChallengeTypeClient is the client API for ChallengeType 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.

------------------------------------------------------------------ ChallengeType

type ChallengeTypeServer

type ChallengeTypeServer interface {
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	ValidateConfig(context.Context, *ValidateRequest) (*ValidateResponse, error)
	CheckFlag(context.Context, *CheckRequest) (*CheckResponse, error)
	// contains filtered or unexported methods
}

ChallengeTypeServer is the server API for ChallengeType service. All implementations must embed UnimplementedChallengeTypeServer for forward compatibility.

------------------------------------------------------------------ ChallengeType

type CheckRequest

type CheckRequest struct {
	Submitted string            `protobuf:"bytes,1,opt,name=submitted,proto3" json:"submitted,omitempty"` // the user's guess (never the flag)
	Config    map[string]string ``                                                                        // author config (host injects no flag)
	/* 139-byte string literal not displayed */
	Instance map[string]string `` // per-instance metadata (no flag)
	/* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CheckRequest) Descriptor deprecated

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

Deprecated: Use CheckRequest.ProtoReflect.Descriptor instead.

func (*CheckRequest) GetConfig

func (x *CheckRequest) GetConfig() map[string]string

func (*CheckRequest) GetInstance

func (x *CheckRequest) GetInstance() map[string]string

func (*CheckRequest) GetSubmitted

func (x *CheckRequest) GetSubmitted() string

func (*CheckRequest) ProtoMessage

func (*CheckRequest) ProtoMessage()

func (*CheckRequest) ProtoReflect

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

func (*CheckRequest) Reset

func (x *CheckRequest) Reset()

func (*CheckRequest) String

func (x *CheckRequest) String() string

type CheckResponse

type CheckResponse struct {
	Correct bool `protobuf:"varint,1,opt,name=correct,proto3" json:"correct,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckResponse) Descriptor deprecated

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

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetCorrect

func (x *CheckResponse) GetCorrect() bool

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

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

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type CompleteRequest

type CompleteRequest struct {
	Params map[string]string `` // callback query params
	/* 139-byte string literal not displayed */
	State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
	// contains filtered or unexported fields
}

func (*CompleteRequest) Descriptor deprecated

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

Deprecated: Use CompleteRequest.ProtoReflect.Descriptor instead.

func (*CompleteRequest) GetParams

func (x *CompleteRequest) GetParams() map[string]string

func (*CompleteRequest) GetState

func (x *CompleteRequest) GetState() string

func (*CompleteRequest) ProtoMessage

func (*CompleteRequest) ProtoMessage()

func (*CompleteRequest) ProtoReflect

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

func (*CompleteRequest) Reset

func (x *CompleteRequest) Reset()

func (*CompleteRequest) String

func (x *CompleteRequest) String() string

type Event

type Event struct {
	Name       string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                               // "challenge.solved"
	Id         string            `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`                                   // unique event id (dedup)
	OccurredAt string            `protobuf:"bytes,3,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` // RFC3339
	Data       map[string]string ``                                                                                            // flat, non-secret AND non-PII
	/* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

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

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetData

func (x *Event) GetData() map[string]string

func (*Event) GetId

func (x *Event) GetId() string

func (*Event) GetName

func (x *Event) GetName() string

func (*Event) GetOccurredAt

func (x *Event) GetOccurredAt() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Identity

type Identity struct {
	Subject  string            `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` // stable IdP-unique id
	Email    string            `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Username string            `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // suggested handle
	Claims   map[string]string ``                                                                      /* 139-byte string literal not displayed */
	// Whether the provider asserts it VERIFIED this email (OIDC's email_verified). The host
	// requires it before binding a login to an existing account by email address — see the auth
	// return-path contract in docs/v0.3/04-plugin-interfaces.md. This is not a defense against a
	// hostile plugin, which could simply set it: it distinguishes an honest provider that verifies
	// addresses from one where a user can assert any address they like. Added in ABI 1.1; a plugin
	// on 1.0 leaves it false, which fails closed (no email binding).
	EmailVerified bool `protobuf:"varint,5,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified,omitempty"`
	// contains filtered or unexported fields
}

The external identity the plugin vouches for. `email` is the plugin's OUTPUT (its knowledge of the subject, for host-side provisioning) — not host-provided PII. The host maps subject -> local user, then issues its OWN session.

func (*Identity) Descriptor deprecated

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

Deprecated: Use Identity.ProtoReflect.Descriptor instead.

func (*Identity) GetClaims

func (x *Identity) GetClaims() map[string]string

func (*Identity) GetEmail

func (x *Identity) GetEmail() string

func (*Identity) GetEmailVerified

func (x *Identity) GetEmailVerified() bool

func (*Identity) GetSubject

func (x *Identity) GetSubject() string

func (*Identity) GetUsername

func (x *Identity) GetUsername() string

func (*Identity) ProtoMessage

func (*Identity) ProtoMessage()

func (*Identity) ProtoReflect

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

func (*Identity) Reset

func (x *Identity) Reset()

func (*Identity) String

func (x *Identity) String() string

type InfoRequest

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

Info is served by every plugin and read at load time.

func (*InfoRequest) Descriptor deprecated

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

Deprecated: Use InfoRequest.ProtoReflect.Descriptor instead.

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) ProtoReflect

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

func (*InfoRequest) Reset

func (x *InfoRequest) Reset()

func (*InfoRequest) String

func (x *InfoRequest) String() string

type InfoResponse

type InfoResponse struct {
	Name         string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // must match the manifest name
	Type         PluginType `protobuf:"varint,2,opt,name=type,proto3,enum=osctf.plugin.v1.PluginType" json:"type,omitempty"`
	Abi          string     `protobuf:"bytes,3,opt,name=abi,proto3" json:"abi,omitempty"`                   // "1.<minor>"
	Version      string     `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`           // the plugin's own semver, for display
	Capabilities []string   `protobuf:"bytes,5,rep,name=capabilities,proto3" json:"capabilities,omitempty"` // optional feature flags within the type (e.g. "password")
	// contains filtered or unexported fields
}

func (*InfoResponse) Descriptor deprecated

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

Deprecated: Use InfoResponse.ProtoReflect.Descriptor instead.

func (*InfoResponse) GetAbi

func (x *InfoResponse) GetAbi() string

func (*InfoResponse) GetCapabilities

func (x *InfoResponse) GetCapabilities() []string

func (*InfoResponse) GetName

func (x *InfoResponse) GetName() string

func (*InfoResponse) GetType

func (x *InfoResponse) GetType() PluginType

func (*InfoResponse) GetVersion

func (x *InfoResponse) GetVersion() string

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) ProtoReflect

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

func (*InfoResponse) Reset

func (x *InfoResponse) Reset()

func (*InfoResponse) String

func (x *InfoResponse) String() string

type NotificationClient

type NotificationClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	Subscriptions(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*SubscriptionList, error)
	Notify(ctx context.Context, in *Event, opts ...grpc.CallOption) (*NotifyAck, error)
}

NotificationClient is the client API for Notification 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.

------------------------------------------------------------------ Notification

type NotificationServer

type NotificationServer interface {
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	Subscriptions(context.Context, *InfoRequest) (*SubscriptionList, error)
	Notify(context.Context, *Event) (*NotifyAck, error)
	// contains filtered or unexported methods
}

NotificationServer is the server API for Notification service. All implementations must embed UnimplementedNotificationServer for forward compatibility.

------------------------------------------------------------------ Notification

type NotifyAck

type NotifyAck struct {
	Handled bool `protobuf:"varint,1,opt,name=handled,proto3" json:"handled,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyAck) Descriptor deprecated

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

Deprecated: Use NotifyAck.ProtoReflect.Descriptor instead.

func (*NotifyAck) GetHandled

func (x *NotifyAck) GetHandled() bool

func (*NotifyAck) ProtoMessage

func (*NotifyAck) ProtoMessage()

func (*NotifyAck) ProtoReflect

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

func (*NotifyAck) Reset

func (x *NotifyAck) Reset()

func (*NotifyAck) String

func (x *NotifyAck) String() string

type PluginType

type PluginType int32
const (
	PluginType_PLUGIN_TYPE_UNSPECIFIED    PluginType = 0
	PluginType_PLUGIN_TYPE_AUTH           PluginType = 1
	PluginType_PLUGIN_TYPE_SCORING        PluginType = 2
	PluginType_PLUGIN_TYPE_NOTIFICATION   PluginType = 3
	PluginType_PLUGIN_TYPE_CHALLENGE_TYPE PluginType = 4
)

func (PluginType) Descriptor

func (PluginType) Descriptor() protoreflect.EnumDescriptor

func (PluginType) Enum

func (x PluginType) Enum() *PluginType

func (PluginType) EnumDescriptor deprecated

func (PluginType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PluginType.Descriptor instead.

func (PluginType) Number

func (x PluginType) Number() protoreflect.EnumNumber

func (PluginType) String

func (x PluginType) String() string

func (PluginType) Type

type ScoreRequest

type ScoreRequest struct {
	Initial int32             `protobuf:"varint,1,opt,name=initial,proto3" json:"initial,omitempty"`
	Min     int32             `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"`
	Decay   int32             `protobuf:"varint,3,opt,name=decay,proto3" json:"decay,omitempty"`
	Solves  int32             `protobuf:"varint,4,opt,name=solves,proto3" json:"solves,omitempty"`
	Params  map[string]string `` // extra curve knobs, from config
	/* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ScoreRequest) Descriptor deprecated

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

Deprecated: Use ScoreRequest.ProtoReflect.Descriptor instead.

func (*ScoreRequest) GetDecay

func (x *ScoreRequest) GetDecay() int32

func (*ScoreRequest) GetInitial

func (x *ScoreRequest) GetInitial() int32

func (*ScoreRequest) GetMin

func (x *ScoreRequest) GetMin() int32

func (*ScoreRequest) GetParams

func (x *ScoreRequest) GetParams() map[string]string

func (*ScoreRequest) GetSolves

func (x *ScoreRequest) GetSolves() int32

func (*ScoreRequest) ProtoMessage

func (*ScoreRequest) ProtoMessage()

func (*ScoreRequest) ProtoReflect

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

func (*ScoreRequest) Reset

func (x *ScoreRequest) Reset()

func (*ScoreRequest) String

func (x *ScoreRequest) String() string

type ScoreResponse

type ScoreResponse struct {
	Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ScoreResponse) Descriptor deprecated

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

Deprecated: Use ScoreResponse.ProtoReflect.Descriptor instead.

func (*ScoreResponse) GetValue

func (x *ScoreResponse) GetValue() int32

func (*ScoreResponse) ProtoMessage

func (*ScoreResponse) ProtoMessage()

func (*ScoreResponse) ProtoReflect

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

func (*ScoreResponse) Reset

func (x *ScoreResponse) Reset()

func (*ScoreResponse) String

func (x *ScoreResponse) String() string

type ScoringClient

type ScoringClient interface {
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	Value(ctx context.Context, in *ScoreRequest, opts ...grpc.CallOption) (*ScoreResponse, error)
}

ScoringClient is the client API for Scoring 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.

------------------------------------------------------------------ Scoring

func NewScoringClient

func NewScoringClient(cc grpc.ClientConnInterface) ScoringClient

type ScoringServer

type ScoringServer interface {
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	Value(context.Context, *ScoreRequest) (*ScoreResponse, error)
	// contains filtered or unexported methods
}

ScoringServer is the server API for Scoring service. All implementations must embed UnimplementedScoringServer for forward compatibility.

------------------------------------------------------------------ Scoring

type SubscriptionList

type SubscriptionList struct {
	EventNames []string `protobuf:"bytes,1,rep,name=event_names,json=eventNames,proto3" json:"event_names,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscriptionList) Descriptor deprecated

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

Deprecated: Use SubscriptionList.ProtoReflect.Descriptor instead.

func (*SubscriptionList) GetEventNames

func (x *SubscriptionList) GetEventNames() []string

func (*SubscriptionList) ProtoMessage

func (*SubscriptionList) ProtoMessage()

func (*SubscriptionList) ProtoReflect

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

func (*SubscriptionList) Reset

func (x *SubscriptionList) Reset()

func (*SubscriptionList) String

func (x *SubscriptionList) String() string

type UnimplementedAuthServer

type UnimplementedAuthServer struct{}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthServer) Authenticate

func (UnimplementedAuthServer) Begin

func (UnimplementedAuthServer) Complete

func (UnimplementedAuthServer) Info

type UnimplementedChallengeTypeServer

type UnimplementedChallengeTypeServer struct{}

UnimplementedChallengeTypeServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedChallengeTypeServer) CheckFlag

func (UnimplementedChallengeTypeServer) Info

func (UnimplementedChallengeTypeServer) ValidateConfig

type UnimplementedNotificationServer

type UnimplementedNotificationServer struct{}

UnimplementedNotificationServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNotificationServer) Info

func (UnimplementedNotificationServer) Notify

func (UnimplementedNotificationServer) Subscriptions

type UnimplementedScoringServer

type UnimplementedScoringServer struct{}

UnimplementedScoringServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedScoringServer) Info

func (UnimplementedScoringServer) Value

type UnsafeAuthServer

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

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

type UnsafeChallengeTypeServer

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

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

type UnsafeNotificationServer

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

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

type UnsafeScoringServer

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

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

type ValidateRequest

type ValidateRequest struct {
	Config map[string]string `` /* 139-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidateRequest) Descriptor deprecated

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

Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.

func (*ValidateRequest) GetConfig

func (x *ValidateRequest) GetConfig() map[string]string

func (*ValidateRequest) ProtoMessage

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) ProtoReflect

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

func (*ValidateRequest) Reset

func (x *ValidateRequest) Reset()

func (*ValidateRequest) String

func (x *ValidateRequest) String() string

type ValidateResponse

type ValidateResponse struct {
	Ok          bool              `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	FieldErrors map[string]string `` /* 168-byte string literal not displayed */
	Normalized  map[string]string `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ValidateResponse) Descriptor deprecated

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

Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.

func (*ValidateResponse) GetFieldErrors

func (x *ValidateResponse) GetFieldErrors() map[string]string

func (*ValidateResponse) GetNormalized

func (x *ValidateResponse) GetNormalized() map[string]string

func (*ValidateResponse) GetOk

func (x *ValidateResponse) GetOk() bool

func (*ValidateResponse) ProtoMessage

func (*ValidateResponse) ProtoMessage()

func (*ValidateResponse) ProtoReflect

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

func (*ValidateResponse) Reset

func (x *ValidateResponse) Reset()

func (*ValidateResponse) String

func (x *ValidateResponse) String() string

Jump to

Keyboard shortcuts

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