secured_servicepb

package
v2.0.10+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSecuredServiceServer

func RegisterSecuredServiceServer(s *grpc.Server, srv SecuredServiceServer)

Types

type AlsoDoublySecureRequest

type AlsoDoublySecureRequest struct {
	// Username used to perform signin
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// Password used to perform signin
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// API key
	Key                  string   `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlsoDoublySecureRequest) Descriptor

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

func (*AlsoDoublySecureRequest) GetKey

func (m *AlsoDoublySecureRequest) GetKey() string

func (*AlsoDoublySecureRequest) GetPassword

func (m *AlsoDoublySecureRequest) GetPassword() string

func (*AlsoDoublySecureRequest) GetUsername

func (m *AlsoDoublySecureRequest) GetUsername() string

func (*AlsoDoublySecureRequest) ProtoMessage

func (*AlsoDoublySecureRequest) ProtoMessage()

func (*AlsoDoublySecureRequest) Reset

func (m *AlsoDoublySecureRequest) Reset()

func (*AlsoDoublySecureRequest) String

func (m *AlsoDoublySecureRequest) String() string

func (*AlsoDoublySecureRequest) XXX_DiscardUnknown

func (m *AlsoDoublySecureRequest) XXX_DiscardUnknown()

func (*AlsoDoublySecureRequest) XXX_Marshal

func (m *AlsoDoublySecureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AlsoDoublySecureRequest) XXX_Merge

func (m *AlsoDoublySecureRequest) XXX_Merge(src proto.Message)

func (*AlsoDoublySecureRequest) XXX_Size

func (m *AlsoDoublySecureRequest) XXX_Size() int

func (*AlsoDoublySecureRequest) XXX_Unmarshal

func (m *AlsoDoublySecureRequest) XXX_Unmarshal(b []byte) error

type AlsoDoublySecureResponse

type AlsoDoublySecureResponse struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AlsoDoublySecureResponse) Descriptor

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

func (*AlsoDoublySecureResponse) GetField

func (m *AlsoDoublySecureResponse) GetField() string

func (*AlsoDoublySecureResponse) ProtoMessage

func (*AlsoDoublySecureResponse) ProtoMessage()

func (*AlsoDoublySecureResponse) Reset

func (m *AlsoDoublySecureResponse) Reset()

func (*AlsoDoublySecureResponse) String

func (m *AlsoDoublySecureResponse) String() string

func (*AlsoDoublySecureResponse) XXX_DiscardUnknown

func (m *AlsoDoublySecureResponse) XXX_DiscardUnknown()

func (*AlsoDoublySecureResponse) XXX_Marshal

func (m *AlsoDoublySecureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AlsoDoublySecureResponse) XXX_Merge

func (m *AlsoDoublySecureResponse) XXX_Merge(src proto.Message)

func (*AlsoDoublySecureResponse) XXX_Size

func (m *AlsoDoublySecureResponse) XXX_Size() int

func (*AlsoDoublySecureResponse) XXX_Unmarshal

func (m *AlsoDoublySecureResponse) XXX_Unmarshal(b []byte) error

type DoublySecureRequest

type DoublySecureRequest struct {
	// API key
	Key                  string   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DoublySecureRequest) Descriptor

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

func (*DoublySecureRequest) GetKey

func (m *DoublySecureRequest) GetKey() string

func (*DoublySecureRequest) ProtoMessage

func (*DoublySecureRequest) ProtoMessage()

func (*DoublySecureRequest) Reset

func (m *DoublySecureRequest) Reset()

func (*DoublySecureRequest) String

func (m *DoublySecureRequest) String() string

func (*DoublySecureRequest) XXX_DiscardUnknown

func (m *DoublySecureRequest) XXX_DiscardUnknown()

func (*DoublySecureRequest) XXX_Marshal

func (m *DoublySecureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoublySecureRequest) XXX_Merge

func (m *DoublySecureRequest) XXX_Merge(src proto.Message)

func (*DoublySecureRequest) XXX_Size

func (m *DoublySecureRequest) XXX_Size() int

func (*DoublySecureRequest) XXX_Unmarshal

func (m *DoublySecureRequest) XXX_Unmarshal(b []byte) error

type DoublySecureResponse

type DoublySecureResponse struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DoublySecureResponse) Descriptor

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

func (*DoublySecureResponse) GetField

func (m *DoublySecureResponse) GetField() string

func (*DoublySecureResponse) ProtoMessage

func (*DoublySecureResponse) ProtoMessage()

func (*DoublySecureResponse) Reset

func (m *DoublySecureResponse) Reset()

func (*DoublySecureResponse) String

func (m *DoublySecureResponse) String() string

func (*DoublySecureResponse) XXX_DiscardUnknown

func (m *DoublySecureResponse) XXX_DiscardUnknown()

func (*DoublySecureResponse) XXX_Marshal

func (m *DoublySecureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DoublySecureResponse) XXX_Merge

func (m *DoublySecureResponse) XXX_Merge(src proto.Message)

func (*DoublySecureResponse) XXX_Size

func (m *DoublySecureResponse) XXX_Size() int

func (*DoublySecureResponse) XXX_Unmarshal

func (m *DoublySecureResponse) XXX_Unmarshal(b []byte) error

type SecureRequest

type SecureRequest struct {
	// Whether to force auth failure even with a valid JWT
	Fail                 bool     `protobuf:"varint,1,opt,name=fail,proto3" json:"fail,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecureRequest) Descriptor

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

func (*SecureRequest) GetFail

func (m *SecureRequest) GetFail() bool

func (*SecureRequest) ProtoMessage

func (*SecureRequest) ProtoMessage()

func (*SecureRequest) Reset

func (m *SecureRequest) Reset()

func (*SecureRequest) String

func (m *SecureRequest) String() string

func (*SecureRequest) XXX_DiscardUnknown

func (m *SecureRequest) XXX_DiscardUnknown()

func (*SecureRequest) XXX_Marshal

func (m *SecureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecureRequest) XXX_Merge

func (m *SecureRequest) XXX_Merge(src proto.Message)

func (*SecureRequest) XXX_Size

func (m *SecureRequest) XXX_Size() int

func (*SecureRequest) XXX_Unmarshal

func (m *SecureRequest) XXX_Unmarshal(b []byte) error

type SecureResponse

type SecureResponse struct {
	Field                string   `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecureResponse) Descriptor

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

func (*SecureResponse) GetField

func (m *SecureResponse) GetField() string

func (*SecureResponse) ProtoMessage

func (*SecureResponse) ProtoMessage()

func (*SecureResponse) Reset

func (m *SecureResponse) Reset()

func (*SecureResponse) String

func (m *SecureResponse) String() string

func (*SecureResponse) XXX_DiscardUnknown

func (m *SecureResponse) XXX_DiscardUnknown()

func (*SecureResponse) XXX_Marshal

func (m *SecureResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SecureResponse) XXX_Merge

func (m *SecureResponse) XXX_Merge(src proto.Message)

func (*SecureResponse) XXX_Size

func (m *SecureResponse) XXX_Size() int

func (*SecureResponse) XXX_Unmarshal

func (m *SecureResponse) XXX_Unmarshal(b []byte) error

type SecuredServiceClient

type SecuredServiceClient interface {
	// Creates a valid JWT
	Signin(ctx context.Context, in *SigninRequest, opts ...grpc.CallOption) (*SigninResponse, error)
	// This action is secured with the jwt scheme
	Secure(ctx context.Context, in *SecureRequest, opts ...grpc.CallOption) (*SecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// query string.
	DoublySecure(ctx context.Context, in *DoublySecureRequest, opts ...grpc.CallOption) (*DoublySecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// header.
	AlsoDoublySecure(ctx context.Context, in *AlsoDoublySecureRequest, opts ...grpc.CallOption) (*AlsoDoublySecureResponse, error)
}

SecuredServiceClient is the client API for SecuredService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSecuredServiceClient

func NewSecuredServiceClient(cc *grpc.ClientConn) SecuredServiceClient

type SecuredServiceServer

type SecuredServiceServer interface {
	// Creates a valid JWT
	Signin(context.Context, *SigninRequest) (*SigninResponse, error)
	// This action is secured with the jwt scheme
	Secure(context.Context, *SecureRequest) (*SecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// query string.
	DoublySecure(context.Context, *DoublySecureRequest) (*DoublySecureResponse, error)
	// This action is secured with the jwt scheme and also requires an API key
	// header.
	AlsoDoublySecure(context.Context, *AlsoDoublySecureRequest) (*AlsoDoublySecureResponse, error)
}

SecuredServiceServer is the server API for SecuredService service.

type SigninRequest

type SigninRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SigninRequest) Descriptor

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

func (*SigninRequest) ProtoMessage

func (*SigninRequest) ProtoMessage()

func (*SigninRequest) Reset

func (m *SigninRequest) Reset()

func (*SigninRequest) String

func (m *SigninRequest) String() string

func (*SigninRequest) XXX_DiscardUnknown

func (m *SigninRequest) XXX_DiscardUnknown()

func (*SigninRequest) XXX_Marshal

func (m *SigninRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigninRequest) XXX_Merge

func (m *SigninRequest) XXX_Merge(src proto.Message)

func (*SigninRequest) XXX_Size

func (m *SigninRequest) XXX_Size() int

func (*SigninRequest) XXX_Unmarshal

func (m *SigninRequest) XXX_Unmarshal(b []byte) error

type SigninResponse

type SigninResponse struct {
	// JWT token
	Jwt string `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
	// API Key
	ApiKey string `protobuf:"bytes,2,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
	// OAuth2 token
	OauthToken           string   `protobuf:"bytes,3,opt,name=oauth_token,json=oauthToken,proto3" json:"oauth_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SigninResponse) Descriptor

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

func (*SigninResponse) GetApiKey

func (m *SigninResponse) GetApiKey() string

func (*SigninResponse) GetJwt

func (m *SigninResponse) GetJwt() string

func (*SigninResponse) GetOauthToken

func (m *SigninResponse) GetOauthToken() string

func (*SigninResponse) ProtoMessage

func (*SigninResponse) ProtoMessage()

func (*SigninResponse) Reset

func (m *SigninResponse) Reset()

func (*SigninResponse) String

func (m *SigninResponse) String() string

func (*SigninResponse) XXX_DiscardUnknown

func (m *SigninResponse) XXX_DiscardUnknown()

func (*SigninResponse) XXX_Marshal

func (m *SigninResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigninResponse) XXX_Merge

func (m *SigninResponse) XXX_Merge(src proto.Message)

func (*SigninResponse) XXX_Size

func (m *SigninResponse) XXX_Size() int

func (*SigninResponse) XXX_Unmarshal

func (m *SigninResponse) XXX_Unmarshal(b []byte) error

type UnimplementedSecuredServiceServer

type UnimplementedSecuredServiceServer struct {
}

UnimplementedSecuredServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSecuredServiceServer) AlsoDoublySecure

func (*UnimplementedSecuredServiceServer) DoublySecure

func (*UnimplementedSecuredServiceServer) Secure

func (*UnimplementedSecuredServiceServer) Signin

Jump to

Keyboard shortcuts

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