secured_servicepb

package
v0.0.0-...-5107ef3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 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 SecureRequest

type SecureRequest struct {
	// Are these exposed for unauthenticated requests?
	Test                 string   `protobuf:"bytes,1,opt,name=test,proto3" json:"test,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SecureRequest) Descriptor

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

func (*SecureRequest) GetTest

func (m *SecureRequest) GetTest() string

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)
}

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)
}

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SigninResponse) Descriptor

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

func (*SigninResponse) GetJwt

func (m *SigninResponse) GetJwt() 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) Secure

func (*UnimplementedSecuredServiceServer) Signin

Jump to

Keyboard shortcuts

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