go-micro: github.com/micro/go-micro/auth/service/proto Index | Files

package go_micro_auth

import "github.com/micro/go-micro/auth/service/proto"

Index

Package Files

auth.pb.go auth.pb.micro.go

func RegisterAuthHandler Uses

func RegisterAuthHandler(s server.Server, hdlr AuthHandler, opts ...server.HandlerOption) error

type Account Uses

type Account struct {
    Id                   string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    Token                string            `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
    Created              int64             `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"`
    Expiry               int64             `protobuf:"varint,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
    Roles                []*Role           `protobuf:"bytes,5,rep,name=roles,proto3" json:"roles,omitempty"`
    Metadata             map[string]string `protobuf:"bytes,6,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

func (*Account) Descriptor Uses

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

func (*Account) GetCreated Uses

func (m *Account) GetCreated() int64

func (*Account) GetExpiry Uses

func (m *Account) GetExpiry() int64

func (*Account) GetId Uses

func (m *Account) GetId() string

func (*Account) GetMetadata Uses

func (m *Account) GetMetadata() map[string]string

func (*Account) GetRoles Uses

func (m *Account) GetRoles() []*Role

func (*Account) GetToken Uses

func (m *Account) GetToken() string

func (*Account) ProtoMessage Uses

func (*Account) ProtoMessage()

func (*Account) Reset Uses

func (m *Account) Reset()

func (*Account) String Uses

func (m *Account) String() string

func (*Account) XXX_DiscardUnknown Uses

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal Uses

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

func (*Account) XXX_Merge Uses

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

func (*Account) XXX_Size Uses

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal Uses

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

type AuthHandler Uses

type AuthHandler interface {
    Generate(context.Context, *GenerateRequest, *GenerateResponse) error
    Validate(context.Context, *ValidateRequest, *ValidateResponse) error
    Revoke(context.Context, *RevokeRequest, *RevokeResponse) error
}

type AuthService Uses

type AuthService interface {
    Generate(ctx context.Context, in *GenerateRequest, opts ...client.CallOption) (*GenerateResponse, error)
    Validate(ctx context.Context, in *ValidateRequest, opts ...client.CallOption) (*ValidateResponse, error)
    Revoke(ctx context.Context, in *RevokeRequest, opts ...client.CallOption) (*RevokeResponse, error)
}

func NewAuthService Uses

func NewAuthService(name string, c client.Client) AuthService

type GenerateRequest Uses

type GenerateRequest struct {
    Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GenerateRequest) Descriptor Uses

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

func (*GenerateRequest) GetAccount Uses

func (m *GenerateRequest) GetAccount() *Account

func (*GenerateRequest) ProtoMessage Uses

func (*GenerateRequest) ProtoMessage()

func (*GenerateRequest) Reset Uses

func (m *GenerateRequest) Reset()

func (*GenerateRequest) String Uses

func (m *GenerateRequest) String() string

func (*GenerateRequest) XXX_DiscardUnknown Uses

func (m *GenerateRequest) XXX_DiscardUnknown()

func (*GenerateRequest) XXX_Marshal Uses

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

func (*GenerateRequest) XXX_Merge Uses

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

func (*GenerateRequest) XXX_Size Uses

func (m *GenerateRequest) XXX_Size() int

func (*GenerateRequest) XXX_Unmarshal Uses

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

type GenerateResponse Uses

type GenerateResponse struct {
    Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*GenerateResponse) Descriptor Uses

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

func (*GenerateResponse) GetAccount Uses

func (m *GenerateResponse) GetAccount() *Account

func (*GenerateResponse) ProtoMessage Uses

func (*GenerateResponse) ProtoMessage()

func (*GenerateResponse) Reset Uses

func (m *GenerateResponse) Reset()

func (*GenerateResponse) String Uses

func (m *GenerateResponse) String() string

func (*GenerateResponse) XXX_DiscardUnknown Uses

func (m *GenerateResponse) XXX_DiscardUnknown()

func (*GenerateResponse) XXX_Marshal Uses

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

func (*GenerateResponse) XXX_Merge Uses

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

func (*GenerateResponse) XXX_Size Uses

func (m *GenerateResponse) XXX_Size() int

func (*GenerateResponse) XXX_Unmarshal Uses

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

type Resource Uses

type Resource struct {
    Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Type                 string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Resource) Descriptor Uses

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

func (*Resource) GetName Uses

func (m *Resource) GetName() string

func (*Resource) GetType Uses

func (m *Resource) GetType() string

func (*Resource) ProtoMessage Uses

func (*Resource) ProtoMessage()

func (*Resource) Reset Uses

func (m *Resource) Reset()

func (*Resource) String Uses

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown Uses

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal Uses

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

func (*Resource) XXX_Merge Uses

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

func (*Resource) XXX_Size Uses

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal Uses

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

type RevokeRequest Uses

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

func (*RevokeRequest) Descriptor Uses

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

func (*RevokeRequest) GetToken Uses

func (m *RevokeRequest) GetToken() string

func (*RevokeRequest) ProtoMessage Uses

func (*RevokeRequest) ProtoMessage()

func (*RevokeRequest) Reset Uses

func (m *RevokeRequest) Reset()

func (*RevokeRequest) String Uses

func (m *RevokeRequest) String() string

func (*RevokeRequest) XXX_DiscardUnknown Uses

func (m *RevokeRequest) XXX_DiscardUnknown()

func (*RevokeRequest) XXX_Marshal Uses

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

func (*RevokeRequest) XXX_Merge Uses

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

func (*RevokeRequest) XXX_Size Uses

func (m *RevokeRequest) XXX_Size() int

func (*RevokeRequest) XXX_Unmarshal Uses

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

type RevokeResponse Uses

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

func (*RevokeResponse) Descriptor Uses

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

func (*RevokeResponse) ProtoMessage Uses

func (*RevokeResponse) ProtoMessage()

func (*RevokeResponse) Reset Uses

func (m *RevokeResponse) Reset()

func (*RevokeResponse) String Uses

func (m *RevokeResponse) String() string

func (*RevokeResponse) XXX_DiscardUnknown Uses

func (m *RevokeResponse) XXX_DiscardUnknown()

func (*RevokeResponse) XXX_Marshal Uses

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

func (*RevokeResponse) XXX_Merge Uses

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

func (*RevokeResponse) XXX_Size Uses

func (m *RevokeResponse) XXX_Size() int

func (*RevokeResponse) XXX_Unmarshal Uses

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

type Role Uses

type Role struct {
    Name                 string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    Resource             *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*Role) Descriptor Uses

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

func (*Role) GetName Uses

func (m *Role) GetName() string

func (*Role) GetResource Uses

func (m *Role) GetResource() *Resource

func (*Role) ProtoMessage Uses

func (*Role) ProtoMessage()

func (*Role) Reset Uses

func (m *Role) Reset()

func (*Role) String Uses

func (m *Role) String() string

func (*Role) XXX_DiscardUnknown Uses

func (m *Role) XXX_DiscardUnknown()

func (*Role) XXX_Marshal Uses

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

func (*Role) XXX_Merge Uses

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

func (*Role) XXX_Size Uses

func (m *Role) XXX_Size() int

func (*Role) XXX_Unmarshal Uses

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

type ValidateRequest Uses

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

func (*ValidateRequest) Descriptor Uses

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

func (*ValidateRequest) GetToken Uses

func (m *ValidateRequest) GetToken() string

func (*ValidateRequest) ProtoMessage Uses

func (*ValidateRequest) ProtoMessage()

func (*ValidateRequest) Reset Uses

func (m *ValidateRequest) Reset()

func (*ValidateRequest) String Uses

func (m *ValidateRequest) String() string

func (*ValidateRequest) XXX_DiscardUnknown Uses

func (m *ValidateRequest) XXX_DiscardUnknown()

func (*ValidateRequest) XXX_Marshal Uses

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

func (*ValidateRequest) XXX_Merge Uses

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

func (*ValidateRequest) XXX_Size Uses

func (m *ValidateRequest) XXX_Size() int

func (*ValidateRequest) XXX_Unmarshal Uses

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

type ValidateResponse Uses

type ValidateResponse struct {
    Account              *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ValidateResponse) Descriptor Uses

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

func (*ValidateResponse) GetAccount Uses

func (m *ValidateResponse) GetAccount() *Account

func (*ValidateResponse) ProtoMessage Uses

func (*ValidateResponse) ProtoMessage()

func (*ValidateResponse) Reset Uses

func (m *ValidateResponse) Reset()

func (*ValidateResponse) String Uses

func (m *ValidateResponse) String() string

func (*ValidateResponse) XXX_DiscardUnknown Uses

func (m *ValidateResponse) XXX_DiscardUnknown()

func (*ValidateResponse) XXX_Marshal Uses

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

func (*ValidateResponse) XXX_Merge Uses

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

func (*ValidateResponse) XXX_Size Uses

func (m *ValidateResponse) XXX_Size() int

func (*ValidateResponse) XXX_Unmarshal Uses

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

Package go_micro_auth imports 6 packages (graph). Updated 2020-02-03. Refresh now. Tools for package owners.